Class XaModeTransactionTable
java.lang.Object
org.infinispan.hotrod.impl.transaction.XaModeTransactionTable
- All Implemented Interfaces:
TransactionTable
A
TransactionTable that registers the RemoteCache as a XAResource in the transaction.
Only a single XAResource is registered even if multiple RemoteCaches interact with the same
transaction.
When more than one RemoteCache is involved in the Transaction, the prepare, commit and rollback
requests are sent sequential and they are ordered by the RemoteCache's name.
If a RemoteCache is read-only, the commit/rollback isn't invoked.
- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<K,V> TransactionContext <K, V> enlist(TransactionalRemoteCacheImpl<K, V> txRemoteCache, jakarta.transaction.Transaction tx) final voidstart(TransactionOperationFactory operationFactory) It initializes theTransactionTablewith theTransactionOperationFactoryto use.
-
Constructor Details
-
XaModeTransactionTable
public XaModeTransactionTable(long timeout)
-
-
Method Details
-
enlist
public <K,V> TransactionContext<K,V> enlist(TransactionalRemoteCacheImpl<K, V> txRemoteCache, jakarta.transaction.Transaction tx) -
getXaResource
-
start
Description copied from interface:TransactionTableIt initializes theTransactionTablewith theTransactionOperationFactoryto use.- Specified by:
startin interfaceTransactionTable- Parameters:
operationFactory- TheTransactionOperationFactoryto use.
-