Enum Class RestrictionProcessedState
java.lang.Object
java.lang.Enum<RestrictionProcessedState>
com.atlassian.bitbucket.settingsrestriction.RestrictionProcessedState
- All Implemented Interfaces:
Serializable
,Comparable<RestrictionProcessedState>
,Constable
Defines the processing state for a
restriction
.- Since:
- 8.10
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe restriction failed to be processed after exceeding the maximum allowed retries.The restriction is currently being processed.The restriction has been processed successfully.The restriction is waiting to be processed and has not exceeded the maximum allowed retries. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestrictionProcessedState
fromId
(int id) static Set<RestrictionProcessedState>
Returns a set of states that are considered "finished".int
getId()
static RestrictionProcessedState
Returns the enum constant of this class with the specified name.static RestrictionProcessedState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNPROCESSED
The restriction is waiting to be processed and has not exceeded the maximum allowed retries. -
PROCESSED
The restriction has been processed successfully. -
FAILED
The restriction failed to be processed after exceeding the maximum allowed retries. -
IN_PROGRESS
The restriction is currently being processed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromId
-
getFinishedStates
Returns a set of states that are considered "finished". Restrictions that have a finished state will neither be retried nor picked up by the clean-up job for processing. Additionally, a restriction with a finished state can be safely deleted.- Returns:
- a set of finished states
-
getId
public int getId()
-