Enum Class SagaExecutionState

java.lang.Object
java.lang.Enum<SagaExecutionState>
org.j7m.middleware.api.saga.SagaExecutionState
All Implemented Interfaces:
Serializable, Comparable<SagaExecutionState>, Constable

public enum SagaExecutionState extends Enum<SagaExecutionState>
Durable saga execution lifecycle state.
  • Enum Constant Details

    • DEFINED

      public static final SagaExecutionState DEFINED
      Definition metadata exists but no execution is active.
    • STARTING

      public static final SagaExecutionState STARTING
      Start event is durable and the execution is being initialized.
    • RUNNING

      public static final SagaExecutionState RUNNING
      Execution is active and may schedule steps.
    • STEP_RUNNING

      public static final SagaExecutionState STEP_RUNNING
      A step is currently running.
    • COMPENSATING

      public static final SagaExecutionState COMPENSATING
      Completed steps are being compensated in reverse order.
    • COMPENSATED

      public static final SagaExecutionState COMPENSATED
      Required compensations completed successfully.
    • COMPLETED

      public static final SagaExecutionState COMPLETED
      All normal steps completed successfully.
    • CANCELLING

      public static final SagaExecutionState CANCELLING
      Cancellation has been requested and is being applied.
    • CANCELLED

      public static final SagaExecutionState CANCELLED
      Cancellation reached its terminal state.
    • FAILED

      public static final SagaExecutionState FAILED
      Execution failed without successful terminal compensation.
    • DEAD_LETTERED

      public static final SagaExecutionState DEAD_LETTERED
      Execution or compensation failure was moved to durable dead-letter state.
    • TIMED_OUT

      public static final SagaExecutionState TIMED_OUT
      Saga-level timeout reached a terminal timeout state.
    • WAITING_FOR_DEFINITION

      public static final SagaExecutionState WAITING_FOR_DEFINITION
      Durable metadata was recovered but executable actions must be re-registered.
  • Method Details

    • values

      public static SagaExecutionState[] 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

      public static SagaExecutionState valueOf(String name)
      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 name
      NullPointerException - if the argument is null