Class SyncModeTransactionTable
java.lang.Object
org.infinispan.client.hotrod.impl.transaction.SyncModeTransactionTable
- All Implemented Interfaces:
TransactionTable
A
TransactionTable that registers the RemoteCache as a Synchronization in the transaction.
Only a single Synchronization 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:
- 9.3
- Author:
- Pedro Ruivo
-
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
-
SyncModeTransactionTable
public SyncModeTransactionTable(long timeout)
-
-
Method Details
-
enlist
public <K,V> TransactionContext<K,V> enlist(TransactionalRemoteCacheImpl<K, V> txRemoteCache, jakarta.transaction.Transaction tx) -
start
Description copied from interface:TransactionTableIt initializes theTransactionTablewith theTransactionOperationFactoryto use.- Specified by:
startin interfaceTransactionTable- Parameters:
operationFactory- TheTransactionOperationFactoryto use.
-