Enum Class TransactionStatusEvent.State
- All Implemented Interfaces:
Serializable, Comparable<TransactionStatusEvent.State>, Constable
- Enclosing class:
TransactionStatusEvent
Enumeration of transaction lifecycle states.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTransaction is aborting.Transaction is committing.Transaction processing is complete.Transaction is paused.Transaction is in the prepare phase.Transaction is preparing for abort.Transaction is ready for processing. -
Method Summary
Modifier and TypeMethodDescriptionintintValue()Returns the numeric representation of the state.toString()static TransactionStatusEvent.StateReturns the enum constant of this class with the specified name.static TransactionStatusEvent.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READY
Transaction is ready for processing. -
PREPARING
Transaction is in the prepare phase. -
PREPARING_FOR_ABORT
Transaction is preparing for abort. -
COMMITING
Transaction is committing. -
ABORTING
Transaction is aborting. -
DONE
Transaction processing is complete. -
PAUSED
Transaction is paused.
-
-
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
-
toString
- Overrides:
toStringin classEnum<TransactionStatusEvent.State>
-
intValue
-