Enum AttemptState
- All Implemented Interfaces:
Serializable
,Comparable<AttemptState>
The possible states for a transaction attempt.
-
Enum Constant Summary
Enum ConstantDescriptionSet once the Active Transaction Record entry for this transaction has been updated to mark the transaction as Aborted.Set once the Active Transaction Record entry for this transaction has been updated to mark the transaction as Committed.Set once the commit is fully completed.The attempt did not create an ATR entry.Any call to one of the mutation methods -insert
,replace
,remove
- will update the state to PENDING.Set once the commit is fully rolled back.A state this client doesn't recognise. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttemptState
static AttemptState
Returns the enum constant of this type with the specified name.static AttemptState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_STARTED
The attempt did not create an ATR entry. This generally, but not always, implies a failure state - e.g. the ATR entry could not be written. But, it could have been a successful read-only transaction. The ATR entry is only created for write transactions. -
PENDING
Any call to one of the mutation methods -insert
,replace
,remove
- will update the state to PENDING. -
ABORTED
Set once the Active Transaction Record entry for this transaction has been updated to mark the transaction as Aborted. -
COMMITTED
Set once the Active Transaction Record entry for this transaction has been updated to mark the transaction as Committed. -
COMPLETED
Set once the commit is fully completed. -
ROLLED_BACK
Set once the commit is fully rolled back. -
UNKNOWN
A state this client doesn't recognise.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
convert
-