Package org.wildfly.transaction.client
Class SimpleXid
java.lang.Object
org.wildfly.transaction.client.SimpleXid
- All Implemented Interfaces:
Comparable<SimpleXid>,Xid
A special simplified XID implementation which can only be compared with itself.
- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleXidA completely emptySimpleXid, which sorts below all otherSimpleXidinstances.static final byte[]An empty byte array used when there is an empty XID component.static final SimpleXid[]An emptySimpleXidarray.static final Xid[]An empty XID array.Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NO_BYTES
public static final byte[] NO_BYTESAn empty byte array used when there is an empty XID component. -
NO_XIDS
An empty XID array. -
NO_SIMPLE_XIDS
An emptySimpleXidarray. -
EMPTY
A completely emptySimpleXid, which sorts below all otherSimpleXidinstances.
-
-
Constructor Details
-
SimpleXid
public SimpleXid(int formatId, byte[] gtId, byte[] bq)
-
-
Method Details
-
getFormatId
public int getFormatId()- Specified by:
getFormatIdin interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()- Specified by:
getGlobalTransactionIdin interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()- Specified by:
getBranchQualifierin interfaceXid
-
equals
-
equals
-
withoutBranch
-
hashCode
public int hashCode() -
of
-
of
-
of
-
compareTo
- Specified by:
compareToin interfaceComparable<SimpleXid>
-
toHexString
-
toHexString
-
toString
-