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
ConstructorsConstructorDescriptionThreadContextBatchFactory(org.wildfly.clustering.function.Supplier<ContextualBatch> factory) Creates a batch factory whose batches are referenced viaThreadLocal. -
Method Summary
Methods 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
-
ThreadContextBatchFactory
Creates a batch factory whose batches are referenced viaThreadLocal.- Parameters:
factory- a batch factory
-
-
Method Details
-
get
-