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 ConstantsEnum ConstantDescriptionThe client transaction is being replayed.The client transaction is committed.The clientTransactionManagerdecided to commit.The clientTransactionManagerdecided to rollback of we fail to replay/prepare the transaction.The transaction is successful prepared and it waits for the clientTransactionManagerdecision 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusreadFrom(ObjectInput input) static StatusvalueOf(byte b) Returns the enum constant of this type with the specified name.static StatusReturns 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 voidwriteTo(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 clientTransactionManagerdecision to commit or rollback -
MARK_COMMIT
The clientTransactionManagerdecided to commit. It can't rollback anymore. -
COMMITTED
The client transaction is committed. No other work can be done. -
MARK_ROLLBACK
The clientTransactionManagerdecided 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
-