Enum Class JobAction
- All Implemented Interfaces:
Serializable,Comparable<JobAction>,Constable
Control actions on a durable job (spec section 2.7).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Getter for labelGetter for pastTensebooleanWhether the assistant channel may take this action itself.static JobActionReturns the enum constant of this class with the specified name.static JobAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
-
PAUSE
-
RESUME
-
CANCEL
-
RETRY_FAILED
-
RESTART
-
RUN_AGAIN
-
RETRY_FAILED_ROWS
-
DOWNLOAD_FAILED_ROWS
-
-
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
-
isAllowedFromAssistant
public boolean isAllowedFromAssistant()Whether the assistant channel may take this action itself. It may pause or cancel; everything that starts work needs a person (spec section 3.5). -
getLabel
Getter for label -
getPastTense
Getter for pastTense
-