Interface TransactionBatch.Factory

All Superinterfaces:
Batch.Factory, Supplier<Batch>, org.wildfly.clustering.function.Supplier<Batch>
Enclosing interface:
TransactionBatch

public static interface TransactionBatch.Factory extends Batch.Factory
Factory for creating TransactionBatch instances.
Author:
Paul Ferraro
  • Field Summary

    Fields inherited from interface org.wildfly.clustering.cache.batch.Batch.Factory

    SIMPLE

    Fields inherited from interface org.wildfly.clustering.function.Supplier

    NULL
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    of(String containerName, String cacheName, jakarta.transaction.TransactionManager tm, Function<Throwable,E> exceptionTransformer)
    Returns a transaction-based Batch factory.

    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-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>