Enum Class TransactionContext.TransactionState
java.lang.Object
java.lang.Enum<TransactionContext.TransactionState>
com.loomcache.server.transaction.TransactionContext.TransactionState
- All Implemented Interfaces:
Serializable, Comparable<TransactionContext.TransactionState>, Constable
- Enclosing class:
TransactionContext
public static enum TransactionContext.TransactionState
extends Enum<TransactionContext.TransactionState>
Enumeration representing the state of a transaction.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTransaction is currently active and accepting operations.Transaction has been committed successfully.Transaction is in the process of committing (executing operations).A replicated commit was submitted, but the coordinator could not confirm whether the cluster committed and applied it.Transaction has been rolled back, restoring previous state.Transaction timed out and was automatically rolled back. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TransactionContext.TransactionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE
Transaction is currently active and accepting operations. -
COMMITTING
Transaction is in the process of committing (executing operations). Prevents timeout monitor from attempting a concurrent rollback. -
COMMITTED
Transaction has been committed successfully. -
ROLLED_BACK
Transaction has been rolled back, restoring previous state. -
TIMED_OUT
Transaction timed out and was automatically rolled back. -
OUTCOME_UNKNOWN
A replicated commit was submitted, but the coordinator could not confirm whether the cluster committed and applied it.
-
-
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
-