org.infinispan.transaction.xa.recovery
Class RecoveryAwareLocalTransaction

java.lang.Object
  extended by org.infinispan.transaction.AbstractCacheTransaction
      extended by org.infinispan.transaction.LocalTransaction
          extended by org.infinispan.transaction.xa.LocalXaTransaction
              extended by 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

Field Summary
 
Fields inherited from class org.infinispan.transaction.LocalTransaction
readKeys
 
Fields inherited from class org.infinispan.transaction.AbstractCacheTransaction
affectedKeys, backupKeyLocks, lockedKeys, lookedUpEntries, modifications, tx
 
Constructor Summary
RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int viewId)
           
 
Method Summary
 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.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

RecoveryAwareLocalTransaction

public RecoveryAwareLocalTransaction(Transaction transaction,
                                     GlobalTransaction tx,
                                     boolean implicitTransaction,
                                     int viewId)
Method Detail

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.