Enum Class TaskState
- All Implemented Interfaces:
Serializable, Comparable<TaskState>, Constable
Task lifecycle. One-shot: SCHEDULED to RUNNING to COMPLETED or FAILED, or SCHEDULED to
CANCELLED or RETIRED. Repeating: SCHEDULED to RUNNING and back, ending CANCELLED or RETIRED,
never FAILED. Constants may be added in a 7.x minor release.
A one-shot task that has started always ends COMPLETED or FAILED: cancellation, owner unload and
entity removal do not affect a run in progress.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFuture executions were cancelled, including owner unload.A one-shot execution returned normally.A one-shot execution threw.The owning entity was removed before execution.Currently executing.Queued for its next execution. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
SCHEDULED
Queued for its next execution. -
RUNNING
Currently executing. -
COMPLETED
A one-shot execution returned normally. -
FAILED
A one-shot execution threw. -
CANCELLED
Future executions were cancelled, including owner unload. -
RETIRED
The owning entity was removed before execution.
-
-
Constructor Details
-
TaskState
private TaskState()
-
-
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
-