Class TransactionalState
- java.lang.Object
-
- com.swiftmq.amqp.v100.types.AMQPType
-
- com.swiftmq.amqp.v100.types.AMQPList
-
- com.swiftmq.amqp.v100.generated.transactions.coordination.TransactionalState
-
- All Implemented Interfaces:
DeliveryStateIF
public class TransactionalState extends AMQPList implements DeliveryStateIF
The transactional-state type defines a delivery-state that is used to associate a delivery with a transaction as well as to indicate which outcome is to be applied if the transaction commits.
- Version:
- AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
-
-
Field Summary
Fields Modifier and Type Field Description AMQPDescribedConstructor
codeConstructor
static long
DESCRIPTOR_CODE
static java.lang.String
DESCRIPTOR_NAME
AMQPDescribedConstructor
nameConstructor
-
Constructor Summary
Constructors Constructor Description TransactionalState()
Constructs a TransactionalState.TransactionalState(java.util.List initValue)
Constructs a TransactionalState.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(DeliveryStateVisitor visitor)
Accept method for a DeliveryState visitor.AMQPDescribedConstructor
getArrayConstructor()
Returns an array constructor (internal use)OutcomeIF
getOutcome()
Returns the optional Outcome field.int
getPredictedSize()
Returns the predicted size of this TransactionalState.TxnIdIF
getTxnId()
Returns the mandatory TxnId field.java.lang.String
getValueString()
Returns the value string representation of the type.boolean
hasDescriptor()
Return whether this TransactionalState has a descriptorvoid
setOutcome(OutcomeIF outcome)
Sets the optional Outcome field.void
setTxnId(TxnIdIF txnId)
Sets the mandatory TxnId field.java.lang.String
toString()
void
writeContent(java.io.DataOutput out)
Write the content of this type to a DataOutput.-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPList
getValue, readContent, setValue
-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
-
-
-
-
Field Detail
-
DESCRIPTOR_NAME
public static java.lang.String DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE
-
codeConstructor
public AMQPDescribedConstructor codeConstructor
-
nameConstructor
public AMQPDescribedConstructor nameConstructor
-
-
Constructor Detail
-
TransactionalState
public TransactionalState(java.util.List initValue) throws java.lang.Exception
Constructs a TransactionalState.- Parameters:
initValue
- initial value- Throws:
error
- during initializationjava.lang.Exception
-
TransactionalState
public TransactionalState()
Constructs a TransactionalState.
-
-
Method Detail
-
hasDescriptor
public boolean hasDescriptor()
Return whether this TransactionalState has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
public void accept(DeliveryStateVisitor visitor)
Accept method for a DeliveryState visitor.- Specified by:
accept
in interfaceDeliveryStateIF
- Parameters:
visitor
- DeliveryState visitor
-
getTxnId
public TxnIdIF getTxnId()
Returns the mandatory TxnId field.- Returns:
- TxnId
-
setTxnId
public void setTxnId(TxnIdIF txnId)
Sets the mandatory TxnId field.- Parameters:
txnId
- TxnId
-
getOutcome
public OutcomeIF getOutcome()
Returns the optional Outcome field.- Returns:
- Outcome
-
setOutcome
public void setOutcome(OutcomeIF outcome)
Sets the optional Outcome field.- Parameters:
outcome
- Outcome
-
getPredictedSize
public int getPredictedSize()
Returns the predicted size of this TransactionalState. The predicted size may be greater than the actual size but it can never be less.- Specified by:
getPredictedSize
in interfaceDeliveryStateIF
- Overrides:
getPredictedSize
in classAMQPList
- Returns:
- predicted size
-
getArrayConstructor
public AMQPDescribedConstructor getArrayConstructor() throws java.io.IOException
Returns an array constructor (internal use)- Returns:
- array constructor
- Throws:
java.io.IOException
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPList
- Parameters:
out
- DataOutput- Throws:
java.io.IOException
- on error
-
getValueString
public java.lang.String getValueString()
Description copied from class:AMQPType
Returns the value string representation of the type.- Specified by:
getValueString
in interfaceDeliveryStateIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
-