public enum ActionStatus extends Enum<ActionStatus>
SagaStatus
Enum Constant and Description |
---|
Completed
Action has completed successfully, and an action response has been received.
|
Failed
Action has failed to complete, possibly after one or more retries.
|
InProgress
An action request has been published to start action, but no response has been received.
|
Pending
The initial state of action, before execution of the action has started.
|
RetryAwaiting
Action has failed to complete, and a retry has been scheduled to attempt processing again after a certain delay.
|
RetryCompleted
A transient state which indicates that the waiting period of a retry has completed, and reprocessing can commence.
|
UndoBypassed
Action does not have an undo command, so when processing backwards in undo (compensation) mode, processing for this action is bypassed.
|
UndoFailed
Undo command for this action has failed to complete, possibly after one or more retries.
|
UndoInProgress
One of the other saga actions has failed, and a request has been published to undo this action, but no response has been received.
|
Undone
Undo command for this action has completed successfully.
|
Modifier and Type | Method and Description |
---|---|
static ActionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionStatus Pending
public static final ActionStatus InProgress
public static final ActionStatus Completed
public static final ActionStatus Failed
public static final ActionStatus UndoInProgress
public static final ActionStatus Undone
public static final ActionStatus UndoBypassed
public static final ActionStatus UndoFailed
public static final ActionStatus RetryAwaiting
public static final ActionStatus RetryCompleted
public static ActionStatus[] values()
for (ActionStatus c : ActionStatus.values()) System.out.println(c);
public static ActionStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.