org.apache.activemq.command
Class XATransactionId

java.lang.Object
  extended by org.apache.activemq.command.TransactionId
      extended by org.apache.activemq.command.XATransactionId
All Implemented Interfaces:
Comparable, Xid, DataStructure

public class XATransactionId
extends TransactionId
implements Xid, Comparable


Field Summary
static byte DATA_STRUCTURE_TYPE
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XATransactionId()
           
XATransactionId(byte[] encodedBytes)
           
XATransactionId(Xid xid)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 byte[] getBranchQualifier()
           
 byte getDataStructureType()
           
 byte[] getEncodedXidBytes()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 ArrayList<MessageAck> getPreparedAcks()
           
 String getTransactionKey()
           
 int hashCode()
           
 DataByteArrayOutputStream internalOutputStream()
           
 boolean isLocalTransaction()
           
 boolean isXATransaction()
           
 void setBranchQualifier(byte[] branchQualifier)
           
 void setFormatId(int formatId)
           
 void setGlobalTransactionId(byte[] globalTransactionId)
           
 void setPreparedAcks(ArrayList<MessageAck> preparedAcks)
           
 String toString()
           
 
Methods inherited from class org.apache.activemq.command.TransactionId
isMarshallAware
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values
Constructor Detail

XATransactionId

public XATransactionId()

XATransactionId

public XATransactionId(Xid xid)

XATransactionId

public XATransactionId(byte[] encodedBytes)
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

getEncodedXidBytes

public byte[] getEncodedXidBytes()

internalOutputStream

public DataByteArrayOutputStream internalOutputStream()

getTransactionKey

public String getTransactionKey()
Specified by:
getTransactionKey in class TransactionId

toString

public String toString()
Overrides:
toString in class Object

isXATransaction

public boolean isXATransaction()
Specified by:
isXATransaction in class TransactionId

isLocalTransaction

public boolean isLocalTransaction()
Specified by:
isLocalTransaction in class TransactionId

getFormatId

public int getFormatId()
Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface Xid

setBranchQualifier

public void setBranchQualifier(byte[] branchQualifier)

setFormatId

public void setFormatId(int formatId)

setGlobalTransactionId

public void setGlobalTransactionId(byte[] globalTransactionId)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

setPreparedAcks

public void setPreparedAcks(ArrayList<MessageAck> preparedAcks)

getPreparedAcks

public ArrayList<MessageAck> getPreparedAcks()


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.