| Modifier and Type | Field and Description |
|---|---|
static int |
GLOBAL_LENGTH |
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
XidImpl(byte[] global,
byte[] local) |
XidImpl(long serverId,
long randomId,
long sequence)
Creates a new transaction id.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the xid.
|
boolean |
equals(java.lang.Object o)
Returns equality.
|
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode()
Returns hashCode.
|
java.lang.String |
toString()
Printable version of the transaction id.
|
public static final int GLOBAL_LENGTH
public XidImpl(long serverId,
long randomId,
long sequence)
id - the 64 bit number for the id.public XidImpl(byte[] global,
byte[] local)
public int getFormatId()
getFormatId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object