Package org.apache.activemq.command
Class XATransactionId
- java.lang.Object
-
- org.apache.activemq.command.TransactionId
-
- org.apache.activemq.command.XATransactionId
-
- All Implemented Interfaces:
Comparable
,Xid
,DataStructure
public class XATransactionId extends TransactionId implements Xid, Comparable
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA_STRUCTURE_TYPE
-
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
-
Constructor Summary
Constructors Constructor Description XATransactionId()
XATransactionId(byte[] encodedBytes)
XATransactionId(Xid xid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getDataStructureType
public byte getDataStructureType()
- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
getEncodedXidBytes
public byte[] getEncodedXidBytes()
-
internalOutputStream
public DataByteArrayOutputStream internalOutputStream()
-
getTransactionKey
public String getTransactionKey()
- Specified by:
getTransactionKey
in classTransactionId
-
isXATransaction
public boolean isXATransaction()
- Specified by:
isXATransaction
in classTransactionId
-
isLocalTransaction
public boolean isLocalTransaction()
- Specified by:
isLocalTransaction
in classTransactionId
-
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfaceXid
-
setBranchQualifier
public void setBranchQualifier(byte[] branchQualifier)
-
setFormatId
public void setFormatId(int formatId)
-
setGlobalTransactionId
public void setGlobalTransactionId(byte[] globalTransactionId)
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
-
setPreparedAcks
public void setPreparedAcks(ArrayList<MessageAck> preparedAcks)
-
getPreparedAcks
public ArrayList<MessageAck> getPreparedAcks()
-
-