Class XACnxPrepare

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • bq

        private byte[] bq
        Transaction branch qualifier.
      • fi

        private int fi
        Transaction identifier format.
      • gti

        private byte[] gti
        Global transaction identifier.
    • Constructor Detail

      • XACnxPrepare

        public XACnxPrepare​(byte[] bq,
                            int fi,
                            byte[] gti,
                            Vector<ProducerMessages> sendings,
                            Vector<SessAckRequest> acks)
        Constructs an XACnxPrepare instance.
        Parameters:
        bq - Transaction branch qualifier.
        fi - Transaction identifier format.
        gti - Global transaction identifier.
        sendings - Vector of ProducerMessages instances.
        acks - Vector of SessAckRequest instances.
      • XACnxPrepare

        public XACnxPrepare()
    • Method Detail

      • getBQ

        public byte[] getBQ()
        Returns the transaction branch qualifier.
        Returns:
        the transaction branch qualifier.
      • setBQ

        public void setBQ​(byte[] bq)
      • getFI

        public int getFI()
        Returns the transaction identifier format.
        Returns:
        the transaction identifier format.
      • setFI

        public void setFI​(int fi)
      • getGTI

        public byte[] getGTI()
        Returns the global transaction identifier.
        Returns:
        the global transaction identifier.
      • setGTI

        public void setGTI​(byte[] gti)
      • getSendings

        public Vector<ProducerMessages> getSendings()
        Returns the vector of ProducerMessages instances.
        Returns:
        The produced messages.
      • addProducerMessages

        public void addProducerMessages​(ProducerMessages pm)
      • getAcks

        public Vector<SessAckRequest> getAcks()
        Returns the vector of SessAckRequest instances.
        Returns:
        The acknowleges.
      • addSessAckRequest

        public void addSessAckRequest​(SessAckRequest sar)
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        The object implements the readFrom method to restore its contents from the input stream.
        Specified by:
        readFrom in interface Streamable
        Overrides:
        readFrom in class AbstractJmsRequest
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.