Class AbstractContextualBatch
java.lang.Object
org.wildfly.clustering.cache.infinispan.batch.AbstractContextualBatch
- All Implemented Interfaces:
AutoCloseable, Supplier<ContextualBatch>, Batch, Contextual, ContextualBatch, 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 Batch
Batch.Status -
Field Summary
Fields inherited from interface ContextualBatch
LOGGER -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Batch
discard, getStatus, suspendWithContextMethods inherited from interface ContextualBatch
suspendMethods inherited from interface 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 interfaceBatch
-