public class RecoveryAwareLocalTransaction extends LocalXaTransaction implements RecoveryAwareTransaction
LocalXaTransaction
and adds recovery related information.readKeys
affectedKeys, backupKeyLocks, lockedKeys, lookedUpEntries, modifications, tx
Constructor and Description |
---|
RecoveryAwareLocalTransaction(Transaction transaction,
GlobalTransaction tx,
boolean implicitTransaction,
int viewId) |
Modifier and Type | Method and 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) |
getXid, isEnlisted, setXid, toString
addModification, addReadKey, clearRemoteLocksAcquired, equals, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, isImplicitTransaction, isMarkedForRollback, isReadOnly, keyRead, locksAcquired, markForRollback, putLookedUpEntries, putLookedUpEntry, setModifications
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, clearLockedKeys, clearLookedUpEntries, getAffectedKeys, getGlobalTransaction, getLockedKeys, getModifications, getUpdatedEntryVersions, getViewId, lookupEntry, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeLookedUpEntry, setModifications, setUpdatedEntryVersions, waitForLockRelease
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addBackupLockForKey, addReadKey, clearLockedKeys, clearLookedUpEntries, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getModifications, getUpdatedEntryVersions, getViewId, keyRead, lookupEntry, notifyOnTransactionFinished, ownsLock, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry, setUpdatedEntryVersions, waitForLockRelease
public RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int viewId)
public boolean isPrepared()
isPrepared
in interface RecoveryAwareTransaction
public void setPrepared(boolean prepared)
setPrepared
in interface RecoveryAwareTransaction
public boolean isCompletionFailed()
public void setCompletionFailed(boolean completionFailed)
isCompletionFailed()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.