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 class
RecoveryAwareGlobalTransaction.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 long
getInternalId()
Xid
getXid()
void
setInternalId(long internalId)
void
setXid(Xid xid)
String
toString()
-
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:
getXid
in interfaceRecoverableTransactionIdentifier
-
setXid
public void setXid(Xid xid)
- Specified by:
setXid
in interfaceRecoverableTransactionIdentifier
-
getInternalId
public long getInternalId()
- Specified by:
getInternalId
in interfaceRecoverableTransactionIdentifier
-
setInternalId
public void setInternalId(long internalId)
- Specified by:
setInternalId
in interfaceRecoverableTransactionIdentifier
-
toString
public String toString()
- Overrides:
toString
in classGlobalTransaction
-
-