public class RecoveryAwareLocalTransaction extends LocalXaTransaction implements RecoveryAwareTransaction
LocalXaTransaction and adds recovery related information.CacheTransaction.TransactionCompletedListeneraffectedKeys, lookedUpEntries, modifications, topologyId, tx| Constructor and Description |
|---|
RecoveryAwareLocalTransaction(Transaction transaction,
GlobalTransaction tx,
boolean implicitTransaction,
int topologyId,
long txCreationTime) |
| 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, toStringaddModification, clearRemoteLocksAcquired, equals, getCommitNodes, getIracMetadata, getLookedUpEntries, getRemoteLocksAcquired, getTransaction, hashCode, hasIracMetadata, isCommitOrRollbackSent, isFromRemoteSite, isImplicitTransaction, isPrepareSent, isReadOnly, locksAcquired, markCommitOrRollbackSent, markPrepareSent, putLookedUpEntries, putLookedUpEntry, setFromRemoteSite, setStateTransferFlag, storeIracMetadataaddAffectedKey, addAllAffectedKeys, addBackupLockForKey, addListener, addVersionRead, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, forEachBackupLock, forEachLock, freezeModifications, getAffectedKeys, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getStateTransferFlag, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModification, isFromStateTransfer, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setModifications, setUpdatedEntryVersionsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddBackupLockForKey, addListener, addVersionRead, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, forEachBackupLock, forEachLock, freezeModifications, getAllModifications, getCreationTime, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModification, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, putLookedUpEntries, putLookedUpEntry, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setUpdatedEntryVersionspublic RecoveryAwareLocalTransaction(Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime)
public boolean isPrepared()
isPrepared in interface RecoveryAwareTransactionpublic void setPrepared(boolean prepared)
setPrepared in interface RecoveryAwareTransactionpublic boolean isCompletionFailed()
public void setCompletionFailed(boolean completionFailed)
isCompletionFailed()Copyright © 2021 JBoss by Red Hat. All rights reserved.