Enum Class TxnFailureRecovery

java.lang.Object
java.lang.Enum<TxnFailureRecovery>
com.github.sttk.sabi.TxnFailureRecovery
All Implemented Interfaces:
Serializable, Comparable<TxnFailureRecovery>, Constable

public enum TxnFailureRecovery extends Enum<TxnFailureRecovery>
Defines recommended recovery actions to handle transaction failures.
  • Enum Constant Details

    • NoActionRequired

      public static final TxnFailureRecovery NoActionRequired
      Indicates that no recovery action is required.
    • RerunLogicAndCommit

      public static final TxnFailureRecovery RerunLogicAndCommit
      Indicates that the logic should be rerun and committed again without further changes.
    • ResolveCauseThenRerunLogicAndCommit

      public static final TxnFailureRecovery ResolveCauseThenRerunLogicAndCommit
      Indicates that the root cause must be resolved before rerunning logic and committing.
    • ResolveCauseThenRerunPostCommit

      public static final TxnFailureRecovery ResolveCauseThenRerunPostCommit
      Indicates that the root cause must be resolved before rerunning the post-commit phase.
    • ResolveCauseAndInconsistency

      public static final TxnFailureRecovery ResolveCauseAndInconsistency
      Indicates that both the root cause and any resulting data inconsistency must be resolved.
    • InvestigateBecauseImpossible

      public static final TxnFailureRecovery InvestigateBecauseImpossible
      Indicates an impossible state occurred that requires investigation.
    • ManualRollbackRequired

      public static final TxnFailureRecovery ManualRollbackRequired
      Indicates that manual intervention is required to roll back changes.
  • Method Details

    • values

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