Class RecoveryAwareGlobalTransaction
- java.lang.Object
-
- org.infinispan.transaction.xa.GlobalTransaction
-
- org.infinispan.transaction.xa.recovery.RecoveryAwareGlobalTransaction
-
- All Implemented Interfaces:
Cloneable,RecoverableTransactionIdentifier
public class RecoveryAwareGlobalTransaction extends GlobalTransaction implements RecoverableTransactionIdentifier
GlobalTransaction that also holds xid information, required for recovery.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecoveryAwareGlobalTransaction.Externalizer-
Nested classes/interfaces inherited from class org.infinispan.transaction.xa.GlobalTransaction
GlobalTransaction.AbstractGlobalTxExternalizer<T extends GlobalTransaction>
-
-
Field Summary
-
Fields inherited from class org.infinispan.transaction.xa.GlobalTransaction
addr, id
-
-
Constructor Summary
Constructors Constructor Description RecoveryAwareGlobalTransaction()RecoveryAwareGlobalTransaction(Address addr, boolean remote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetInternalId()XidgetXid()voidsetInternalId(long internalId)voidsetXid(Xid xid)StringtoString()-
Methods inherited from class org.infinispan.transaction.xa.GlobalTransaction
clone, equals, getAddress, getId, globalId, hashCode, isRemote, setAddress, setId, setRemote
-
-
-
-
Constructor Detail
-
RecoveryAwareGlobalTransaction
public RecoveryAwareGlobalTransaction()
-
RecoveryAwareGlobalTransaction
public RecoveryAwareGlobalTransaction(Address addr, boolean remote)
-
-
Method Detail
-
getXid
public Xid getXid()
- Specified by:
getXidin interfaceRecoverableTransactionIdentifier
-
setXid
public void setXid(Xid xid)
- Specified by:
setXidin interfaceRecoverableTransactionIdentifier
-
getInternalId
public long getInternalId()
- Specified by:
getInternalIdin interfaceRecoverableTransactionIdentifier
-
setInternalId
public void setInternalId(long internalId)
- Specified by:
setInternalIdin interfaceRecoverableTransactionIdentifier
-
toString
public String toString()
- Overrides:
toStringin classGlobalTransaction
-
-