Interface TransactionBatch.Factory
- All Superinterfaces:
Batch.Factory,Supplier<Batch>,org.wildfly.clustering.function.Supplier<Batch>
- Enclosing interface:
TransactionBatch
Factory for creating
TransactionBatch instances.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.cache.batch.Batch.Factory
SIMPLEFields inherited from interface org.wildfly.clustering.function.Supplier
NULL -
Method Summary
Modifier and TypeMethodDescriptionget()static <E extends RuntimeException>
TransactionBatch.Factoryof(String containerName, String cacheName, jakarta.transaction.TransactionManager tm, Function<Throwable, E> exceptionTransformer) Returns a transaction-basedBatchfactory.Methods inherited from interface org.wildfly.clustering.function.Supplier
map
-
Method Details
-
of
static <E extends RuntimeException> TransactionBatch.Factory of(String containerName, String cacheName, jakarta.transaction.TransactionManager tm, Function<Throwable, E> exceptionTransformer) Returns a transaction-basedBatchfactory.- Type Parameters:
E- the target exception type- Parameters:
containerName- the name of the cache containercacheName- the name of the cachetm- a transaction managerexceptionTransformer- an exception wrapper- Returns:
- a new transaction batcher
-
get
TransactionBatch get()
-