Class ThreadContextBatchFactory

java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.ThreadContextBatchFactory
All Implemented Interfaces:
Supplier<org.wildfly.clustering.cache.batch.Batch>, org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch>
Direct Known Subclasses:
SimpleContextualBatchFactory, TransactionalBatchFactory

public class ThreadContextBatchFactory extends Object implements org.wildfly.clustering.function.Supplier<org.wildfly.clustering.cache.batch.Batch>
A factory that ThreadContextBatch.
Author:
Paul Ferraro
  • Field Summary

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

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThreadContextBatchFactory(org.wildfly.clustering.function.Supplier<ContextualBatch> factory)
    Creates a batch factory whose batches are referenced via ThreadLocal.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.wildfly.clustering.cache.batch.Batch
    get()
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTest
  • Constructor Details

    • ThreadContextBatchFactory

      public ThreadContextBatchFactory(org.wildfly.clustering.function.Supplier<ContextualBatch> factory)
      Creates a batch factory whose batches are referenced via ThreadLocal.
      Parameters:
      factory - a batch factory
  • Method Details

    • get

      public org.wildfly.clustering.cache.batch.Batch get()
      Specified by:
      get in interface Supplier<org.wildfly.clustering.cache.batch.Batch>