org.infinispan.client.hotrod.impl.transaction.TransactionTable Maven / Gradle / Ivy
package org.infinispan.client.hotrod.impl.transaction;
import jakarta.transaction.Transaction;
/**
* A {@link Transaction} table that knows how to interact with the {@link Transaction} and how the {@link
* TransactionalRemoteCacheImpl} is enlisted.
*
* @author Pedro Ruivo
* @since 9.3
*/
public interface TransactionTable {
TransactionContext enlist(TransactionalRemoteCacheImpl txRemoteCache, Transaction tx);
/**
* It initializes the {@link TransactionTable} with the {@link TransactionOperationFactory} to use.
*
* @param operationFactory The {@link TransactionOperationFactory} to use.
*/
void start(TransactionOperationFactory operationFactory);
}