Class WorkProcessor<T>

  • Type Parameters:
    T - event implementation storing the details for the work to processed.
    All Implemented Interfaces:
    EventProcessor, Runnable

    public final class WorkProcessor<T>
    extends Object
    implements EventProcessor

    A WorkProcessor wraps a single WorkHandler, effectively consuming the sequence and ensuring appropriate barriers.

    Generally, this will be used as part of a WorkerPool.