Class RecoveryAwareLocalTransaction
- java.lang.Object
-
- org.infinispan.transaction.impl.AbstractCacheTransaction
-
- org.infinispan.transaction.impl.LocalTransaction
-
- org.infinispan.transaction.xa.LocalXaTransaction
-
- org.infinispan.transaction.xa.recovery.RecoveryAwareLocalTransaction
-
- All Implemented Interfaces:
CacheTransaction
,RecoveryAwareTransaction
public class RecoveryAwareLocalTransaction extends LocalXaTransaction implements RecoveryAwareTransaction
ExtendsLocalXaTransaction
and adds recovery related information.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.transaction.xa.CacheTransaction
CacheTransaction.TransactionCompletedListener
-
-
Constructor Summary
Constructors Constructor Description RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCompletionFailed()
Returns true if this transaction failed during 2nd phase of 2PC(prepare or commit).boolean
isPrepared()
void
setCompletionFailed(boolean completionFailed)
void
setPrepared(boolean prepared)
-
Methods inherited from class org.infinispan.transaction.xa.LocalXaTransaction
getXid, isEnlisted, setXid, toString
-
Methods inherited from class org.infinispan.transaction.impl.LocalTransaction
addModification, addReadKey, clearRemoteLocksAcquired, equals, getCommitNodes, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, isCommitOrRollbackSent, isFromRemoteSite, isImplicitTransaction, isPrepareSent, isReadOnly, keyRead, locksAcquired, markCommitOrRollbackSent, markPrepareSent, putLookedUpEntries, putLookedUpEntry, setFromRemoteSite, setStateTransferFlag
-
Methods inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, addListener, addVersionRead, areLocksReleased, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, containsLockOrBackupLock, findAnyLockedOrBackupLocked, forEachBackupLock, freezeModifications, getAffectedKeys, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getStateTransferFlag, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModification, isFromStateTransfer, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction
addBackupLockForKey, addListener, addReadKey, addVersionRead, areLocksReleased, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, containsLockOrBackupLock, findAnyLockedOrBackupLocked, forEachBackupLock, freezeModifications, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getLookedUpRemoteVersion, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModification, isMarkedForRollback, keyRead, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, putLookedUpEntries, putLookedUpEntry, putLookedUpRemoteVersion, removeBackupLock, removeBackupLocks, removeLookedUpEntry, replaceVersionRead, setUpdatedEntryVersions, waitForLockRelease
-
-
-
-
Constructor Detail
-
RecoveryAwareLocalTransaction
public RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
-
-
Method Detail
-
isPrepared
public boolean isPrepared()
- Specified by:
isPrepared
in interfaceRecoveryAwareTransaction
-
setPrepared
public void setPrepared(boolean prepared)
- Specified by:
setPrepared
in interfaceRecoveryAwareTransaction
-
isCompletionFailed
public boolean isCompletionFailed()
Returns true if this transaction failed during 2nd phase of 2PC(prepare or commit). E.g. when the transaction successfully prepared but the commit failed due to a network issue.
-
setCompletionFailed
public void setCompletionFailed(boolean completionFailed)
- See Also:
isCompletionFailed()
-
-