MAXBQUALSIZE, MAXGTRIDSIZE| 构造器和说明 |
|---|
XidImpl()
Instantiates a new X id.
|
XidImpl(String branchId)
Instantiates a new Xid.
|
XidImpl(String transactionId,
String branchId) |
XidImpl(Xid xid)
Instantiates a new X id.
|
XidImpl(XidImpl xId)
Instantiates a new X id.
|
XidImpl(XidImpl xId,
Integer index)
Instantiates a new X id.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
String |
getBranchId()
Gets branch id.
|
byte[] |
getBranchQualifier() |
int |
getFormatId() |
String |
getGlobalId()
Gets global id.
|
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
XidImpl |
newBranchId()
New branch id x id.
|
XidImpl |
newResId(int index)
New res id x id.
|
String |
toString() |
public XidImpl()
public XidImpl(XidImpl xId)
xId - the x idpublic XidImpl(String branchId)
branchId - the xid strpublic XidImpl(XidImpl xId, Integer index)
xId - the x idindex - the indexpublic XidImpl(Xid xid)
xid - the xidpublic String getGlobalId()
public String getBranchId()
public int getFormatId()
getFormatId 在接口中 Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId 在接口中 Xidpublic byte[] getBranchQualifier()
getBranchQualifier 在接口中 Xidpublic XidImpl newBranchId()
public XidImpl newResId(int index)
index - the indexCopyright © 2022 dromara. All rights reserved.