public class XidImpl extends Object implements Xid, Serializable
MAXBQUALSIZE, MAXGTRIDSIZE
Constructor and Description |
---|
XidImpl(byte[] globalId)
Constructor taking a global id (for the main transaction)
|
XidImpl(int formatId,
byte[] globalId,
byte[] branchId) |
XidImpl(Xid global,
byte[] branch)
Constructor for a branch id
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
String |
toString() |
public XidImpl(byte[] globalId)
globalId
- the global transaction idpublic XidImpl(Xid global, byte[] branch)
global
- the xid of the global transaction this branch belongs tobranch
- the branch idpublic XidImpl(int formatId, byte[] globalId, byte[] branchId)
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
Copyright © 2019. All rights reserved.