Class SyncModeTransactionTable
java.lang.Object
org.infinispan.hotrod.impl.transaction.SyncModeTransactionTable
- All Implemented Interfaces:
TransactionTable
A
TransactionTable that registers the cache as a Synchronization in the transaction.
Only a single Synchronization is registered even if multiple caches interact with the same
transaction.
When more than one cache is involved in the Transaction, the prepare, commit and rollback
requests are sent sequential and they are ordered by the cache's name.
If a cache 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
-
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.
-