org.infinispan.transaction.xa.recovery
Class RecoveryAwareLocalTransaction
java.lang.Object
org.infinispan.transaction.AbstractCacheTransaction
org.infinispan.transaction.LocalTransaction
org.infinispan.transaction.xa.LocalXaTransaction
org.infinispan.transaction.xa.recovery.RecoveryAwareLocalTransaction
- All Implemented Interfaces:
- CacheTransaction, RecoveryAwareTransaction
public class RecoveryAwareLocalTransaction
- extends LocalXaTransaction
- implements RecoveryAwareTransaction
Extends LocalXaTransaction
and adds recovery related information.
- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class org.infinispan.transaction.LocalTransaction |
addModification, addReadKey, clearRemoteLocksAcquired, equals, getCommitNodes, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, isFromRemoteSite, isFromStateTransfer, isImplicitTransaction, isReadOnly, keyRead, locksAcquired, putLookedUpEntries, putLookedUpEntry, setFromRemoteSite, setFromStateTransfer |
Methods inherited from class org.infinispan.transaction.AbstractCacheTransaction |
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, clearLockedKeys, clearLookedUpEntries, getAffectedKeys, getAllModifications, getBackupLockedKeys, getGlobalTransaction, getLockedKeys, getLookedUpRemoteVersion, getModifications, getTopologyId, getUpdatedEntryVersions, hasModification, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, putLookedUpRemoteVersion, registerLockedKey, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease |
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction |
addBackupLockForKey, addReadKey, clearLockedKeys, clearLookedUpEntries, getAllModifications, getBackupLockedKeys, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getLookedUpRemoteVersion, getModifications, getTopologyId, getUpdatedEntryVersions, hasModification, isMarkedForRollback, keyRead, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, putLookedUpEntries, putLookedUpEntry, putLookedUpRemoteVersion, removeLookedUpEntry, setUpdatedEntryVersions, waitForLockRelease |
RecoveryAwareLocalTransaction
public RecoveryAwareLocalTransaction(Transaction transaction,
GlobalTransaction tx,
boolean implicitTransaction,
int topologyId)
isPrepared
public boolean isPrepared()
- Specified by:
isPrepared
in interface RecoveryAwareTransaction
setPrepared
public void setPrepared(boolean prepared)
- Specified by:
setPrepared
in interface RecoveryAwareTransaction
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()
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.