public class XID extends Object implements Serializable, Xid
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
XID(String tid,
String resourceURL)
Create a new instance with the resource name as branch.
|
XID(Xid xid)
Copy constructor needed during recovery: if the data source returns
inappropriate instances (that do not implement equals and hashCode) then
we will need this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getBranchQualifier() |
String |
getBranchQualifierAsString() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
String |
getGlobalTransactionIdAsString() |
int |
hashCode() |
String |
toString() |
public XID(String tid, String resourceURL)
tid - The global transaction identifier.resourceURL - The name of the resource in the current configuration
(UNIQUE!), needed for recovering the XIDs for this
configuration. The resulting branch qualifier will ALWAYS
start with the name of the resource, and this can be used
during recovery to identify the XIDs to be recovered.public XID(Xid xid)
xid - The xid.public int getFormatId()
getFormatId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic String getBranchQualifierAsString()
public String getGlobalTransactionIdAsString()
Copyright © 2016. All Rights Reserved.