Enum Class TaskState
- All Implemented Interfaces:
Serializable, Comparable<TaskState>, Constable
Stable lifecycle states for a middleware workload task.
The enum is immutable and thread-safe. State transitions are owned by a
WorkloadScheduler; implementations may support only the transitions
documented by that scheduler and must not claim durable or exactly-once
execution semantics.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe task stopped because cancellation completed.Cancellation has been requested and is being delivered.A checkpoint is being recorded.The task completed successfully.The task expired before valid ownership or completion.The task failed with a middleware or application failure.The task owner used a stale fencing token.A worker owns a live task lease.The task is waiting for capacity or a lease owner.A worker is actively executing the task.The scheduler accepted the task descriptor. -
Method Summary
-
Enum Constant Details
-
SUBMITTED
The scheduler accepted the task descriptor. -
QUEUED
The task is waiting for capacity or a lease owner. -
LEASED
A worker owns a live task lease. -
RUNNING
A worker is actively executing the task. -
CANCELLING
Cancellation has been requested and is being delivered. -
CANCELLED
The task stopped because cancellation completed. -
CHECKPOINTING
A checkpoint is being recorded. -
COMPLETED
The task completed successfully. -
FAILED
The task failed with a middleware or application failure. -
EXPIRED
The task expired before valid ownership or completion. -
FENCED
The task owner used a stale fencing token.
-
-
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
-