Package com.iizix.txp
Enum Class ITXPNode.State
- All Implemented Interfaces:
Serializable
,Comparable<ITXPNode.State>
,Constable
- Enclosing interface:
- ITXPNode
State enum for a
ITXPNode
.- Author:
- Freggle
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionCompleted either commit or rollback.Operation failed.No or initial stateOperation succeeded.Operation succeeded but the node can be ignored in the transaction as the work was read only.Timeout waiting for the transaction to advance.Unable to perform the request.Ready to do transactional work.Method Summary
Modifier and TypeMethodDescriptionstatic ITXPNode.State
Returns the enum constant of this class with the specified name.static ITXPNode.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NONE
No or initial stateWORKING
Ready to do transactional work.OK
Operation succeeded.FAILED
Operation failed.READ_ONLY
Operation succeeded but the node can be ignored in the transaction as the work was read only.TIMED_OUT
Timeout waiting for the transaction to advance.UNABLE
Unable to perform the request.COMPLETED
Completed either commit or rollback.
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