Enum Class SagaExecutionState
- All Implemented Interfaces:
Serializable, Comparable<SagaExecutionState>, Constable
Durable saga execution lifecycle state.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCancellation reached its terminal state.Cancellation has been requested and is being applied.Required compensations completed successfully.Completed steps are being compensated in reverse order.All normal steps completed successfully.Execution or compensation failure was moved to durable dead-letter state.Definition metadata exists but no execution is active.Execution failed without successful terminal compensation.Execution is active and may schedule steps.Start event is durable and the execution is being initialized.A step is currently running.Saga-level timeout reached a terminal timeout state.Durable metadata was recovered but executable actions must be re-registered. -
Method Summary
Modifier and TypeMethodDescriptionstatic SagaExecutionStateReturns the enum constant of this class with the specified name.static SagaExecutionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFINED
Definition metadata exists but no execution is active. -
STARTING
Start event is durable and the execution is being initialized. -
RUNNING
Execution is active and may schedule steps. -
STEP_RUNNING
A step is currently running. -
COMPENSATING
Completed steps are being compensated in reverse order. -
COMPENSATED
Required compensations completed successfully. -
COMPLETED
All normal steps completed successfully. -
CANCELLING
Cancellation has been requested and is being applied. -
CANCELLED
Cancellation reached its terminal state. -
FAILED
Execution failed without successful terminal compensation. -
DEAD_LETTERED
Execution or compensation failure was moved to durable dead-letter state. -
TIMED_OUT
Saga-level timeout reached a terminal timeout state. -
WAITING_FOR_DEFINITION
Durable metadata was recovered but executable actions must be re-registered.
-
-
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
-