Enum Status
- All Implemented Interfaces:
Serializable
,Comparable<Status>
Internal server status for the client's transactions.
The first 3 values are used as return value for the TxFunction
.
- Since:
- 9.4
- Author:
- Pedro Ruivo
-
Enum Constant Summary
Enum ConstantDescriptionThe client transaction is being replayed.The client transaction is committed.The clientTransactionManager
decided to commit.The clientTransactionManager
decided to rollback of we fail to replay/prepare the transaction.The transaction is successful prepared and it waits for the clientTransactionManager
decision to commit or rollbackThe client transaction was replayed successful (versions read are validated) and the transactions is preparing.The client transaction is rolled back. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Status
readFrom
(ObjectInput input) static Status
valueOf
(byte b) Returns the enum constant of this type with the specified name.static Status
Returns the enum constant of this type with the specified name.static Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static void
writeTo
(ObjectOutput output, Status status)
-
Enum Constant Details
-
OK
-
ERROR
-
NO_TRANSACTION
-
ACTIVE
The client transaction is being replayed. -
PREPARING
The client transaction was replayed successful (versions read are validated) and the transactions is preparing. -
PREPARED
The transaction is successful prepared and it waits for the clientTransactionManager
decision to commit or rollback -
MARK_COMMIT
The clientTransactionManager
decided to commit. It can't rollback anymore. -
COMMITTED
The client transaction is committed. No other work can be done. -
MARK_ROLLBACK
The clientTransactionManager
decided to rollback of we fail to replay/prepare the transaction. It can't commit anymore. -
ROLLED_BACK
The client transaction is rolled back. No other work can be done.
-
-
Field Details
-
value
public final byte value
-
-
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
-
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
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:
b
- 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
-