|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.transaction.xa.TransactionTable
public class TransactionTable
Repository for RemoteTransaction
and TransactionXaAdapter
s (locally originated transactions).
Nested Class Summary | |
---|---|
class |
TransactionTable.StaleTransactionCleanup
|
Constructor Summary | |
---|---|
TransactionTable()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionTable()
Method Detail |
---|
public void initialize(CommandsFactory commandsFactory, RpcManager rpcManager, Configuration configuration, InvocationContextContainer icc, InterceptorChain invoker, CacheNotifier notifier, GlobalTransactionFactory gtf, CacheManager cm)
public RemoteTransaction getRemoteTransaction(GlobalTransaction txId)
RemoteTransaction
associated with the supplied transaction id.
Returns null if no such association exists.
public RemoteTransaction createRemoteTransaction(GlobalTransaction globalTx, WriteCommand[] modifications)
RemoteTransaction
based on the supplied params.
Returns the created transaction.
IllegalStateException
- if an attempt to create a RemoteTransaction
for an already registered id is made.public RemoteTransaction createRemoteTransaction(GlobalTransaction globalTx)
RemoteTransaction
with no modifications. Returns the
created transaction.
IllegalStateException
- if an attempt to create a RemoteTransaction
for an already registered id is made.public TransactionXaAdapter getOrCreateXaAdapter(Transaction transaction, InvocationContext ctx)
TransactionXaAdapter
corresponding to the supplied transaction.
If none exists, will be created first.
public boolean removeLocalTransaction(Transaction tx)
TransactionXaAdapter
corresponding to the given tx. Returns true
if such an tx exists.
public boolean removeRemoteTransaction(GlobalTransaction txId)
RemoteTransaction
corresponding to the given tx. Returns true if
such an tx exists.
public int getRemoteTxCount()
public int getLocalTxCount()
public TransactionXaAdapter getXaCacheAdapter(Transaction tx)
public boolean containRemoteTx(GlobalTransaction globalTransaction)
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |