public class RecoveryAwareTransactionTable extends XaTransactionTable
RecoveryManager.xid2LocalTxCACHE_STOPPED_TOPOLOGY_ID, clustered, clusteringLogic, commandsFactory, configuration, icc, rpcManager, txCoordinator, txFactory| Constructor and Description |
|---|
RecoveryAwareTransactionTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupStaleTransactions(CacheTopology cacheTopology)
First moves the prepared transactions originated on the leavers into the recovery cache and then cleans up the
transactions that are not yet prepared.
|
void |
failureCompletingTransaction(Transaction tx) |
List<Xid> |
getLocalPreparedXids() |
Set<RecoveryAwareLocalTransaction> |
getLocalTxThatFailedToComplete() |
RemoteTransaction |
getRemoteTransaction(GlobalTransaction txId)
Returns the
RemoteTransaction associated with the supplied transaction id. |
Xid |
getRemoteTransactionXid(Long internalId)
Iterates over the remote transactions and returns the XID of the one that has an internal id equal with the
supplied internal Id.
|
void |
initialize(RecoveryManager recoveryManager) |
void |
localTransactionPrepared(LocalTransaction localTransaction) |
void |
remoteTransactionCommitted(GlobalTransaction gtx)
Removes the
RemoteTransaction corresponding to the given tx. |
void |
remoteTransactionPrepared(GlobalTransaction gtx)
Marks the transaction as prepared.
|
void |
remoteTransactionRollback(GlobalTransaction gtx) |
RemoteTransaction |
removeRemoteTransaction(Xid xid) |
addLocalTransactionMapping, enlist, getLocalTransaction, getLocalTxCount, getRecoveryManager, init, removeLocalTransaction, setRecoveryManagercontainRemoteTx, containsLocalTx, getLocalTransaction, getLocalTransaction, getLocalTransactions, getLockedKeysForRemoteTransaction, getMinTopologyId, getOrCreateLocalTransaction, getOrCreateRemoteTransaction, getRemoteTransactions, getRemoteTxCount, initialize, isTransactionCompleted, isTransactionCompletedSuccessfully, markTransactionCompleted, onTopologyChange, recalculateMinTopologyIdIfNeeded, removeLocalTransactionInternal, removeRemoteTransactionpublic void initialize(RecoveryManager recoveryManager)
public void remoteTransactionPrepared(GlobalTransaction gtx)
cleanupStaleTransactions(org.infinispan.topology.CacheTopology)remoteTransactionPrepared in class TransactionTablepublic void localTransactionPrepared(LocalTransaction localTransaction)
localTransactionPrepared in class TransactionTablelocalTransactionPrepared(org.infinispan.transaction.LocalTransaction)public void cleanupStaleTransactions(CacheTopology cacheTopology)
cleanupStaleTransactions in class TransactionTablecacheTopology - public RemoteTransaction getRemoteTransaction(GlobalTransaction txId)
TransactionTableRemoteTransaction associated with the supplied transaction id. Returns null if no such
association exists.getRemoteTransaction in class TransactionTablepublic void remoteTransactionRollback(GlobalTransaction gtx)
remoteTransactionRollback in class TransactionTablepublic void remoteTransactionCommitted(GlobalTransaction gtx)
TransactionTableRemoteTransaction corresponding to the given tx.remoteTransactionCommitted in class TransactionTablepublic void failureCompletingTransaction(Transaction tx)
failureCompletingTransaction in class TransactionTablepublic Set<RecoveryAwareLocalTransaction> getLocalTxThatFailedToComplete()
public Xid getRemoteTransactionXid(Long internalId)
public RemoteTransaction removeRemoteTransaction(Xid xid)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.