Class XidFactoryImpl
- java.lang.Object
 - 
- org.apache.geronimo.transaction.manager.XidFactoryImpl
 
 
- 
- All Implemented Interfaces:
 XidFactory
public class XidFactoryImpl extends java.lang.Object implements 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 Constructor Description XidFactoryImpl()XidFactoryImpl(byte[] tmId) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.transaction.xa.XidcreateBranch(javax.transaction.xa.Xid globalId, int branch)javax.transaction.xa.XidcreateXid()booleanmatchesBranchId(byte[] branchQualifier)booleanmatchesGlobalId(byte[] globalTransactionId)javax.transaction.xa.Xidrecover(int formatId, byte[] globalTransactionid, byte[] branchQualifier) 
 - 
 
- 
- 
Method Detail
- 
createXid
public javax.transaction.xa.Xid createXid()
- Specified by:
 createXidin interfaceXidFactory
 
- 
createBranch
public javax.transaction.xa.Xid createBranch(javax.transaction.xa.Xid globalId, int branch)- 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
public javax.transaction.xa.Xid recover(int formatId, byte[] globalTransactionid, byte[] branchQualifier)- Specified by:
 recoverin interfaceXidFactory
 
 - 
 
 -