Class TransactionalBatchFactory
java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.ThreadContextBatchFactory
org.wildfly.clustering.cache.infinispan.batch.TransactionalBatchFactory
- All Implemented Interfaces:
Supplier<org.wildfly.clustering.cache.batch.Batch>, org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch>
A factory for creating thread context batches referencing transactional batches.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.function.Supplier
NULL -
Constructor Summary
ConstructorsConstructorDescriptionTransactionalBatchFactory(String name, jakarta.transaction.TransactionManager tm, Function<Exception, RuntimeException> exceptionTransformer) Creates a transactional batch factory. -
Method Summary
Methods inherited from class ThreadContextBatchFactory
getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.function.Supplier
handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTest
-
Constructor Details
-
TransactionalBatchFactory
public TransactionalBatchFactory(String name, jakarta.transaction.TransactionManager tm, Function<Exception, RuntimeException> exceptionTransformer) Creates a transactional batch factory.- Parameters:
name- the name of this contexttm- a transaaction managerexceptionTransformer- a runtime exception wrapper for transaction exceptions
-