|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.apollo.broker.XidImpl
public class XidImpl
An implementation of JTA transaction identifier (javax.transaction.xa.Xid).
| Field Summary |
|---|
| Fields inherited from interface javax.transaction.xa.Xid |
|---|
MAXBQUALSIZE, MAXGTRIDSIZE |
| Constructor Summary | |
|---|---|
XidImpl()
Constructs a new null XID. |
|
XidImpl(int formatID,
org.fusesource.hawtbuf.Buffer globalTransactionId,
org.fusesource.hawtbuf.Buffer branchQualifier)
|
|
XidImpl(int formatID,
byte[] globalTxnID,
byte[] branchID)
|
|
XidImpl(java.lang.String globalTxnId,
java.lang.String branchId)
|
|
XidImpl(javax.transaction.xa.Xid from)
Initialize an XID using another XID as the source of data. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Determine whether or not two objects of this type are equal. |
byte[] |
getBranchQualifier()
Returns the branch qualifier for this XID. |
int |
getFormatId()
Obtain the format identifier part of the XID. |
byte[] |
getGlobalTransactionId()
Returns the global transaction identifier for this XID. |
int |
getMemorySize()
|
int |
hashCode()
Compute the hash code. |
void |
readbody(java.io.DataInput in)
read xid from an Array and set each fields. |
static org.fusesource.hawtbuf.Buffer |
toBuffer(javax.transaction.xa.Xid xid)
|
java.lang.String |
toString()
Return a string representing this XID. |
void |
writebody(java.io.DataOutput out)
Writes this XidImpl's data to the DataOutput destination |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XidImpl()
After construction the data within the XID should be initialized.
public XidImpl(int formatID,
byte[] globalTxnID,
byte[] branchID)
public XidImpl(int formatID,
org.fusesource.hawtbuf.Buffer globalTransactionId,
org.fusesource.hawtbuf.Buffer branchQualifier)
public XidImpl(javax.transaction.xa.Xid from)
from - the XID to initialize this XID from
public XidImpl(java.lang.String globalTxnId,
java.lang.String branchId)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other XID object to be compared with this XID.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
This is normally used to display the XID when debugging.
toString in class java.lang.Objectpublic int getFormatId()
getFormatId in interface javax.transaction.xa.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xidpublic int getMemorySize()
public void writebody(java.io.DataOutput out)
throws java.io.IOException
out - The DataOutput destination
java.io.IOException
public void readbody(java.io.DataInput in)
throws java.io.IOException
in - the data input array
java.io.IOExceptionpublic static org.fusesource.hawtbuf.Buffer toBuffer(javax.transaction.xa.Xid xid)
xid -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||