Class SyncModeTransactionTable
- java.lang.Object
-
- org.infinispan.hotrod.impl.transaction.SyncModeTransactionTable
-
- All Implemented Interfaces:
TransactionTable
public class SyncModeTransactionTable extends Object
ATransactionTablethat registers the cache as aSynchronizationin the transaction.Only a single
Synchronizationis 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 Constructor Description SyncModeTransactionTable(long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
TransactionContext<K,V>enlist(TransactionalRemoteCacheImpl<K,V> txRemoteCache, javax.transaction.Transaction tx)voidstart(TransactionOperationFactory operationFactory)It initializes theTransactionTablewith theTransactionOperationFactoryto use.
-
-
-
Method Detail
-
enlist
public <K,V> TransactionContext<K,V> enlist(TransactionalRemoteCacheImpl<K,V> txRemoteCache, javax.transaction.Transaction tx)
-
start
public final void start(TransactionOperationFactory operationFactory)
Description copied from interface:TransactionTableIt initializes theTransactionTablewith theTransactionOperationFactoryto use.- Specified by:
startin interfaceTransactionTable- Parameters:
operationFactory- TheTransactionOperationFactoryto use.
-
-