public class XidImple extends Object implements Xid, Serializable
Modifier and Type | Field and Description |
---|---|
protected com.arjuna.ats.internal.jta.xa.XID |
_theXid |
MAXBQUALSIZE, MAXGTRIDSIZE
Constructor and Description |
---|
XidImple() |
XidImple(AtomicAction c) |
XidImple(Uid id) |
XidImple(Uid id,
boolean branch,
Integer eisName) |
XidImple(Xid xid) |
XidImple(com.arjuna.ats.internal.jta.xa.XID x) |
XidImple(Xid xid,
boolean branch,
Integer eisName) |
Modifier and Type | Method and Description |
---|---|
void |
copy(Xid xid) |
boolean |
equals(Object obj)
Is the specified object equal to this one?
|
boolean |
equals(Xid xid) |
protected static int |
generateHash(int hash,
byte[] bytes,
int start,
int length)
Generate a hash code for the specified bytes.
|
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId()
These operations critically rely on the fact that we unpack the array in
the order we packed it!
|
protected int |
getHash(com.arjuna.ats.internal.jta.xa.XID xid)
Generate the hash code for the xid.
|
Uid |
getTransactionUid() |
com.arjuna.ats.internal.jta.xa.XID |
getXID() |
int |
hashCode()
Return the hash code for this Xid.
|
boolean |
isSameTransaction(Xid xid) |
static void |
pack(OutputObjectState os,
Xid xid) |
boolean |
packInto(OutputObjectState os) |
String |
toString() |
static Xid |
unpack(InputObjectState os) |
boolean |
unpackFrom(InputObjectState os) |
public XidImple()
public XidImple(Xid xid)
public XidImple(AtomicAction c)
public XidImple(Uid id)
public XidImple(com.arjuna.ats.internal.jta.xa.XID x)
public final boolean isSameTransaction(Xid xid)
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public final Uid getTransactionUid()
public final com.arjuna.ats.internal.jta.xa.XID getXID()
public final void copy(Xid xid)
public boolean equals(Xid xid)
public final boolean packInto(OutputObjectState os)
public final boolean unpackFrom(InputObjectState os)
public static final void pack(OutputObjectState os, Xid xid) throws IOException
IOException
public static final Xid unpack(InputObjectState os) throws IOException
IOException
public boolean equals(Object obj)
public int hashCode()
protected int getHash(com.arjuna.ats.internal.jta.xa.XID xid)
xid
- The xid.protected static int generateHash(int hash, byte[] bytes, int start, int length)
hash
- The initial hash.bytes
- The bytes to include in the hash.Copyright © 2013. All Rights Reserved.