Class GlobalXactId

    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalXactId()
      Public Methods of Formatable interface:
      GlobalXactId​(int format_id, byte[] global_id, byte[] branch_id)
      Constructors for This class:
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) byte[] getBranchQualifier()
      Obtain the transaction branch qualifier as an array of bytes.
      (package private) int getFormat_Id()
      Obtain the format id part of the GlobalTransactionId.
      (package private) byte[] getGlobalTransactionId()
      Obtain the global transaction identifier as an array of bytes.
      int getTypeFormatId()
      Return my format identifier.
      void readExternal​(java.io.ObjectInput in)
      Read this in
      void writeExternal​(java.io.ObjectOutput out)
      Write this out.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GlobalXactId

        GlobalXactId​(int format_id,
                     byte[] global_id,
                     byte[] branch_id)
        Constructors for This class:
      • GlobalXactId

        public GlobalXactId()
        Public Methods of Formatable interface:
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Write this out.
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException - error writing to log stream
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Read this in
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException - error reading from log stream
        java.lang.ClassNotFoundException - log stream corrupted
      • getTypeFormatId

        public int getTypeFormatId()
        Return my format identifier.
        Specified by:
        getTypeFormatId in interface TypedFormat
        Returns:
        The identifier. (A UUID stuffed in an array of 16 bytes).
      • getFormat_Id

        int getFormat_Id()
        Obtain the format id part of the GlobalTransactionId.
        Returns:
        format identifier, 0 means the OSI CCR format
      • getGlobalTransactionId

        byte[] getGlobalTransactionId()
        Obtain the global transaction identifier as an array of bytes.
        Returns:
        a byte array containing the global transaction identifier
      • getBranchQualifier

        byte[] getBranchQualifier()
        Obtain the transaction branch qualifier as an array of bytes.
        Returns:
        a byte array containing the branch qualifier of the transaction