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, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, isImplicitTransaction, isMarkedForRollback, isReadOnly, keyRead, locksAcquired, markForRollback, putLookedUpEntries, putLookedUpEntry, setModifications |
Methods inherited from class org.infinispan.transaction.AbstractCacheTransaction |
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, clearLockedKeys, clearLookedUpEntries, getAffectedKeys, getGlobalTransaction, getLockedKeys, getModifications, getUpdatedEntryVersions, getViewId, lookupEntry, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease |
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction |
addBackupLockForKey, addReadKey, clearLockedKeys, clearLookedUpEntries, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getModifications, getUpdatedEntryVersions, getViewId, keyRead, lookupEntry, notifyOnTransactionFinished, ownsLock, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry, setUpdatedEntryVersions, waitForLockRelease |
RecoveryAwareLocalTransaction
public RecoveryAwareLocalTransaction(Transaction transaction,
GlobalTransaction tx,
boolean implicitTransaction,
int viewId)
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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.