Class BrokerXid

  • All Implemented Interfaces:
    javax.transaction.xa.Xid

    public class BrokerXid
    extends java.lang.Object
    implements javax.transaction.xa.Xid
    • Field Summary

      • Fields inherited from interface javax.transaction.xa.Xid

        MAXBQUALSIZE, MAXGTRIDSIZE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBranchQualifier()
      Obtain the transaction branch identifier as an array of bytes.
      int getFormatId()
      Obtain the format identifier.
      byte[] getGlobalTransactionId()
      Obtain the global transaction identifier as an array of bytes.
      static java.lang.String toExternalId​(javax.transaction.xa.Xid xid)
      Converts an XID to a Broker external identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBranchQualifier

        public byte[] getBranchQualifier()
        Obtain the transaction branch identifier as an array of bytes.
        Specified by:
        getBranchQualifier in interface javax.transaction.xa.Xid
        Returns:
        The transaction branch identifer.
      • getFormatId

        public int getFormatId()
        Obtain the format identifier.
        Specified by:
        getFormatId in interface javax.transaction.xa.Xid
        Returns:
        The format identifier.
      • getGlobalTransactionId

        public byte[] getGlobalTransactionId()
        Obtain the global transaction identifier as an array of bytes.
        Specified by:
        getGlobalTransactionId in interface javax.transaction.xa.Xid
        Returns:
        The global transaction identifier.
      • toExternalId

        public static java.lang.String toExternalId​(javax.transaction.xa.Xid xid)
        Converts an XID to a Broker external identifier.
        Parameters:
        xid - The XID to convert to an external identifier.
        Returns:
        An external identifier.