public class XidImpl extends Object implements Xid
Xid
implementation.
If need to be serialized, use the methods writeTo(ObjectOutput, XidImpl)
and readFrom(ObjectInput)
or the AdvancedExternalizer
in EXTERNALIZER
.
Modifier and Type | Field and Description |
---|---|
static AdvancedExternalizer<XidImpl> |
EXTERNALIZER |
MAXBQUALSIZE, MAXGTRIDSIZE
Modifier | Constructor and Description |
---|---|
protected |
XidImpl(int formatId,
byte[] globalTransactionId,
byte[] branchQualifier) |
Modifier and Type | Method and Description |
---|---|
protected int |
branchQualifierLength() |
protected int |
branchQualifierOffset() |
static XidImpl |
copy(Xid externalXid) |
static XidImpl |
create(int formatId,
byte[] globalTransactionId,
byte[] branchQualifier) |
boolean |
equals(Object o) |
byte[] |
getBranchQualifier() |
ByteBuffer |
getBranchQualifierAsByteBuffer() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
ByteBuffer |
getGlobalTransactionIdAsByteBuffer() |
protected int |
globalIdLength() |
protected int |
globalIdOffset() |
int |
hashCode() |
static String |
printXid(int formatId,
byte[] globalTransaction,
byte[] branchQualifier) |
protected byte[] |
rawData() |
static XidImpl |
readFrom(ObjectInput input) |
String |
toString() |
static void |
writeTo(ObjectOutput output,
XidImpl xid) |
public static final AdvancedExternalizer<XidImpl> EXTERNALIZER
protected XidImpl(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
public static XidImpl create(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
public static void writeTo(ObjectOutput output, XidImpl xid) throws IOException
IOException
public static XidImpl readFrom(ObjectInput input) throws IOException
IOException
public static String printXid(int formatId, byte[] globalTransaction, byte[] branchQualifier)
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public ByteBuffer getGlobalTransactionIdAsByteBuffer()
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public ByteBuffer getBranchQualifierAsByteBuffer()
protected int globalIdOffset()
protected int globalIdLength()
protected int branchQualifierOffset()
protected int branchQualifierLength()
protected byte[] rawData()
Copyright © 2021 JBoss by Red Hat. All rights reserved.