org.apache.geronimo.transaction.log
Class XidImpl2
java.lang.Object
org.apache.geronimo.transaction.log.XidImpl2
- All Implemented Interfaces:
- Serializable, Xid
public class XidImpl2
- extends Object
- implements Xid, Serializable
Unique id for a transaction. This implementation is backed by a single byte buffer
so can do less copying than one backed by several byte buffers for the different components.
- Version:
- $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
- See Also:
- Serialized Form
Constructor Summary |
XidImpl2(byte[] globalId)
Constructor taking a global id (for the main transaction) |
XidImpl2(int formatId,
byte[] globalId,
byte[] branch)
|
XidImpl2(Xid global,
byte[] branch)
Constructor for a branch id |
XidImpl2
public XidImpl2(byte[] globalId)
- Constructor taking a global id (for the main transaction)
- Parameters:
globalId
- the global transaction id
XidImpl2
public XidImpl2(Xid global,
byte[] branch)
- Constructor for a branch id
- Parameters:
global
- the xid of the global transaction this branch belongs tobranch
- the branch id
XidImpl2
public XidImpl2(int formatId,
byte[] globalId,
byte[] branch)
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interface Xid
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interface Xid
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interface Xid
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
setKey
public void setKey(Object key)
getKey
public Object getKey()
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.