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:
java.lang.Comparable, javax.transaction.xa.Xid, DataStructure

public class XATransactionId
extends TransactionId
implements javax.transaction.xa.Xid, java.lang.Comparable


Field Summary
static byte DATA_STRUCTURE_TYPE
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XATransactionId()
           
XATransactionId(javax.transaction.xa.Xid xid)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 byte[] getBranchQualifier()
           
 byte getDataStructureType()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 java.util.ArrayList<MessageAck> getPreparedAcks()
           
 java.lang.String getTransactionKey()
           
 int hashCode()
           
 boolean isLocalTransaction()
           
 boolean isXATransaction()
           
 void setBranchQualifier(byte[] branchQualifier)
           
 void setFormatId(int formatId)
           
 void setGlobalTransactionId(byte[] globalTransactionId)
           
 void setPreparedAcks(java.util.ArrayList<MessageAck> preparedAcks)
           
 java.lang.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(javax.transaction.xa.Xid xid)
Method Detail

getDataStructureType

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

getTransactionKey

public java.lang.String getTransactionKey()
Specified by:
getTransactionKey in class TransactionId

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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 javax.transaction.xa.Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface javax.transaction.xa.Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface javax.transaction.xa.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 java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

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

setPreparedAcks

public void setPreparedAcks(java.util.ArrayList<MessageAck> preparedAcks)

getPreparedAcks

public java.util.ArrayList<MessageAck> getPreparedAcks()


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.