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.AbstractCacheTransaction
affectedKeys, lookedUpEntries, modifications, tx
 
Constructor Summary
RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx)
           
 
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, clearRemoteLocksAcquired, equals, filterRemoteLocksAcquire, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, hasRemoteLocksAcquired, isMarkedForRollback, isReadOnly, locksAcquired, markForRollback, putLookedUpEntry, setModifications
 
Methods inherited from class org.infinispan.transaction.AbstractCacheTransaction
clearLookedUpEntries, getAffectedKeys, getGlobalTransaction, getModifications, lookupEntry, removeLookedUpEntry, setAffectedKeys, setLookedUpEntries, setModifications
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction
clearLookedUpEntries, getGlobalTransaction, getLookedUpEntries, getModifications, lookupEntry, putLookedUpEntry, removeLookedUpEntry
 

Constructor Detail

RecoveryAwareLocalTransaction

public RecoveryAwareLocalTransaction(Transaction transaction,
                                     GlobalTransaction tx)
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 © 2011 JBoss, a division of Red Hat. All Rights Reserved.