Package org.infinispan.commons.tx
Class XidImpl
java.lang.Object
org.infinispan.commons.tx.XidImpl
- All Implemented Interfaces:
Xid
- Direct Known Subclasses:
RemoteXid
A
Xid
implementation.
If need to be serialized, use the methods writeTo(ObjectOutput, XidImpl)
and readFrom(ObjectInput)
or the AdvancedExternalizer
in EXTERNALIZER
.
- Since:
- 9.1
- Author:
- Pedro Ruivo
-
Field Summary
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
Constructor Summary
ModifierConstructorDescriptionprotected
XidImpl
(int formatId, byte[] globalTransactionId, byte[] branchQualifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected int
static XidImpl
static XidImpl
create
(int formatId, byte[] globalTransactionId, byte[] branchQualifier) boolean
byte[]
int
byte[]
protected int
protected int
int
hashCode()
static String
printXid
(int formatId, byte[] globalTransaction, byte[] branchQualifier) protected byte[]
rawData()
static XidImpl
readFrom
(ObjectInput input) toString()
static void
writeTo
(ObjectOutput output, XidImpl xid)
-
Field Details
-
EXTERNALIZER
-
-
Constructor Details
-
XidImpl
protected XidImpl(int formatId, byte[] globalTransactionId, byte[] branchQualifier)
-
-
Method Details
-
create
-
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
copy
-
printXid
-
getFormatId
public int getFormatId()- Specified by:
getFormatId
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()- Specified by:
getGlobalTransactionId
in interfaceXid
-
getGlobalTransactionIdAsByteBuffer
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifier
in interfaceXid
-
getBranchQualifierAsByteBuffer
-
equals
-
hashCode
public int hashCode() -
toString
-
globalIdOffset
protected int globalIdOffset() -
globalIdLength
protected int globalIdLength() -
branchQualifierOffset
protected int branchQualifierOffset() -
branchQualifierLength
protected int branchQualifierLength() -
rawData
protected byte[] rawData()
-