Class XidFactoryImpl
java.lang.Object
org.apache.geronimo.transaction.manager.XidFactoryImpl
- All Implemented Interfaces:
XidFactory
Factory for transaction ids.
The Xid is constructed of three parts:
- 8 byte count (LSB first)
- 4 byte system id
- 2 byte entropy
- 4 or 16 byte IP address of host
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBranch(Xid globalId, int branch) booleanmatchesBranchId(byte[] branchQualifier) booleanmatchesGlobalId(byte[] globalTransactionId) recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier)
-
Constructor Details
-
XidFactoryImpl
public XidFactoryImpl(byte[] tmId) -
XidFactoryImpl
public XidFactoryImpl()
-
-
Method Details
-
createXid
- Specified by:
createXidin interfaceXidFactory
-
createBranch
- Specified by:
createBranchin interfaceXidFactory
-
matchesGlobalId
public boolean matchesGlobalId(byte[] globalTransactionId) - Specified by:
matchesGlobalIdin interfaceXidFactory
-
matchesBranchId
public boolean matchesBranchId(byte[] branchQualifier) - Specified by:
matchesBranchIdin interfaceXidFactory
-
recover
- Specified by:
recoverin interfaceXidFactory
-