Class AbstractContextualBatch
java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.AbstractContextualBatch
- All Implemented Interfaces:
AutoCloseable, Supplier<ContextualBatch>, org.wildfly.clustering.cache.batch.Batch, Contextual, ContextualBatch, org.wildfly.clustering.function.Supplier<ContextualBatch>
- Direct Known Subclasses:
DefaultTransactionalBatch, SimpleContextualBatch
An abstract contextual batch implementing the lifecycle of a batch.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.cache.batch.Batch
org.wildfly.clustering.cache.batch.Batch.Status -
Field Summary
Fields inherited from interface ContextualBatch
LOGGERFields inherited from interface org.wildfly.clustering.function.Supplier
NULL -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.batch.Batch
discard, getStatus, suspendWithContextMethods inherited from interface ContextualBatch
suspendMethods inherited from interface org.wildfly.clustering.function.Supplier
handle, thenAccept, thenApply, thenApplyAsDouble, thenApplyAsInt, thenApplyAsLong, thenTest
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<ContextualBatch>
-
getName
Description copied from interface:ContextualReturns the name of this context.- Specified by:
getNamein interfaceContextual- Returns:
- the name of this context.
-
attach
Description copied from interface:ContextualAttach this context to the specified exception.- Specified by:
attachin interfaceContextual- Parameters:
exception- an exception to which to attach this context.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.cache.batch.Batch
-