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 ConstantsEnum ConstantDescriptionATransactionis considered failed in theTransactionManagerresponds with an error to theDeclareaction.ATransactionis considered declared once theTransactionManagerhas responded in the affirmative and assigned a transaction Id.ATransactionis considered declaring once a Declare command has been sent to the remote but before any response has been received which assigns the transaction ID.ATransactionis considered failed in theTransactionManagerresponds with an error to theDischargeaction.ATransactionis considered discharged once aDischargehas been requested and theTransactionManagerhas responded in the affirmative that the request has been honored.ATransactionis 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.ATransactionis considered IDLE until theTransactionManagerresponds that it has been declared successfully and an transaction Id has been assigned. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionStateReturns 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
ATransactionis considered IDLE until theTransactionManagerresponds that it has been declared successfully and an transaction Id has been assigned. -
DECLARING
ATransactionis 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
ATransactionis considered declared once theTransactionManagerhas responded in the affirmative and assigned a transaction Id. -
DISCHARGING
ATransactionis 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
ATransactionis considered discharged once aDischargehas been requested and theTransactionManagerhas responded in the affirmative that the request has been honored. -
DECLARE_FAILED
ATransactionis considered failed in theTransactionManagerresponds with an error to theDeclareaction. -
DISCHARGE_FAILED
ATransactionis considered failed in theTransactionManagerresponds with an error to theDischargeaction.
-
-
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
-