Package org.apache.qpid.protonj2.engine
Enum TransactionState
- All Implemented Interfaces:
Serializable
,Comparable<TransactionState>
Indicates the current state of a given
Transaction
-
Enum Constant Summary
Enum ConstantDescriptionATransaction
is considered failed in theTransactionManager
responds with an error to theDeclare
action.ATransaction
is considered declared once theTransactionManager
has responded in the affirmative and assigned a transaction Id.ATransaction
is considered declaring once a Declare command has been sent to the remote but before any response has been received which assigns the transaction ID.ATransaction
is considered failed in theTransactionManager
responds with an error to theDischarge
action.ATransaction
is considered discharged once aDischarge
has been requested and theTransactionManager
has responded in the affirmative that the request has been honored.ATransaction
is considered to b discharging once a Discharge command has been sent to the remote but before any response has been received indicating the outcome of the attempted discharge.ATransaction
is considered IDLE until theTransactionManager
responds that it has been declared successfully and an transaction Id has been assigned. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionState
Returns the enum constant of this type with the specified name.static TransactionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDLE
ATransaction
is considered IDLE until theTransactionManager
responds that it has been declared successfully and an transaction Id has been assigned. -
DECLARING
ATransaction
is considered declaring once a Declare command has been sent to the remote but before any response has been received which assigns the transaction ID. -
DECLARED
ATransaction
is considered declared once theTransactionManager
has responded in the affirmative and assigned a transaction Id. -
DISCHARGING
ATransaction
is considered to b discharging once a Discharge command has been sent to the remote but before any response has been received indicating the outcome of the attempted discharge. -
DISCHARGED
ATransaction
is considered discharged once aDischarge
has been requested and theTransactionManager
has responded in the affirmative that the request has been honored. -
DECLARE_FAILED
ATransaction
is considered failed in theTransactionManager
responds with an error to theDeclare
action. -
DISCHARGE_FAILED
ATransaction
is considered failed in theTransactionManager
responds with an error to theDischarge
action.
-
-
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
-