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

public abstract class AbstractContextualBatch extends Object implements ContextualBatch
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

    LOGGER

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

    NULL
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attach(Throwable exception)
    Attach this context to the specified exception.
    void
     
    get()
     
    Returns the name of this context.

    Methods inherited from class Object

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

    Methods inherited from interface org.wildfly.clustering.cache.batch.Batch

    discard, getStatus, suspendWithContext

    Methods inherited from interface ContextualBatch

    suspend

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

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

    • get

      public ContextualBatch get()
      Specified by:
      get in interface Supplier<ContextualBatch>
    • getName

      public String getName()
      Description copied from interface: Contextual
      Returns the name of this context.
      Specified by:
      getName in interface Contextual
      Returns:
      the name of this context.
    • attach

      public void attach(Throwable exception)
      Description copied from interface: Contextual
      Attach this context to the specified exception.
      Specified by:
      attach in interface Contextual
      Parameters:
      exception - an exception to which to attach this context.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.cache.batch.Batch