Class WorkQueue.WorkUnitWrapper<T>

java.lang.Object
nonapi.io.github.classgraph.concurrency.WorkQueue.WorkUnitWrapper<T>
Type Parameters:
T - the generic type
Enclosing class:
WorkQueue<T>

private static class WorkQueue.WorkUnitWrapper<T> extends Object
A wrapper for work units (needed to send a poison pill as a null value, since BlockingQueue does not accept null values).
  • Field Details

    • workUnit

      final T workUnit
      The work unit.
  • Constructor Details

    • WorkUnitWrapper

      public WorkUnitWrapper(T workUnit)
      Constructor.
      Parameters:
      workUnit - the work unit, or null to represent a poison pill.