Interface TransactionBatch.Factory

All Superinterfaces:
Batch.Factory, Supplier<Batch>, Supplier<Batch>
Enclosing interface:
TransactionBatch

public static interface TransactionBatch.Factory extends Batch.Factory
Factory for creating TransactionBatch instances.
Author:
Paul Ferraro
  • 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-based Batch factory.
      Type Parameters:
      E - the target exception type
      Parameters:
      containerName - the name of the cache container
      cacheName - the name of the cache
      tm - a transaction manager
      exceptionTransformer - an exception wrapper
      Returns:
      a new transaction batcher
    • get

      Specified by:
      get in interface Supplier<Batch>