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 Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object