Enum Class ParticipantStatus

java.lang.Object
java.lang.Enum<ParticipantStatus>
com.oracle.microtx.springboot.lra.annotation.ParticipantStatus
All Implemented Interfaces:
Serializable, Comparable<ParticipantStatus>, Constable

public enum ParticipantStatus extends Enum<ParticipantStatus>
LRA state models
  • Enum Constant Details

    • Active

      public static final ParticipantStatus Active
      . LRA started , compensate or complete is not yet initiated.
    • Compensating

      public static final ParticipantStatus Compensating
      . The current LRA is being compensating .
    • Compensated

      public static final ParticipantStatus Compensated
      . The LRA has compensated .
    • FailedToCompensate

      public static final ParticipantStatus FailedToCompensate
      . Among the participants , atleast one participant was not able to compensate .
    • Completing

      public static final ParticipantStatus Completing
      . The LRA is in process of completing the transaction.
    • Completed

      public static final ParticipantStatus Completed
      . The LRA is completed.
    • FailedToComplete

      public static final ParticipantStatus FailedToComplete
      . Among the participants , atleast one participant was not able to complete the transaction .
  • Method Details

    • values

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