Class 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
    • Constructor Detail

      • TransactionalState

        public TransactionalState​(java.util.List initValue)
                           throws java.lang.Exception
        Constructs a TransactionalState.
        Parameters:
        initValue - initial value
        Throws:
        error - during initialization
        java.lang.Exception
      • TransactionalState

        public TransactionalState()
        Constructs a TransactionalState.
    • Method Detail

      • hasDescriptor

        public boolean hasDescriptor()
        Return whether this TransactionalState has a descriptor
        Overrides:
        hasDescriptor in class AMQPType
        Returns:
        true/false
      • 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 interface DeliveryStateIF
        Overrides:
        getPredictedSize in class AMQPList
        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 class AMQPList
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AMQPList