Enum Class TxnFailureRecovery
- All Implemented Interfaces:
Serializable, Comparable<TxnFailureRecovery>, Constable
Defines recommended recovery actions to handle transaction failures.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates an impossible state occurred that requires investigation.Indicates that manual intervention is required to roll back changes.Indicates that no recovery action is required.Indicates that the logic should be rerun and committed again without further changes.Indicates that both the root cause and any resulting data inconsistency must be resolved.Indicates that the root cause must be resolved before rerunning logic and committing.Indicates that the root cause must be resolved before rerunning the post-commit phase. -
Method Summary
Modifier and TypeMethodDescriptionstatic TxnFailureRecoveryReturns the enum constant of this class with the specified name.static TxnFailureRecovery[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoActionRequired
Indicates that no recovery action is required. -
RerunLogicAndCommit
Indicates that the logic should be rerun and committed again without further changes. -
ResolveCauseThenRerunLogicAndCommit
Indicates that the root cause must be resolved before rerunning logic and committing. -
ResolveCauseThenRerunPostCommit
Indicates that the root cause must be resolved before rerunning the post-commit phase. -
ResolveCauseAndInconsistency
Indicates that both the root cause and any resulting data inconsistency must be resolved. -
InvestigateBecauseImpossible
Indicates an impossible state occurred that requires investigation. -
ManualRollbackRequired
Indicates that manual intervention is required to roll back changes.
-
-
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
-