Class QueuedConsumer.Worker<T>

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    QueuedConsumer<T>

    static final class QueuedConsumer.Worker<T>
    extends java.lang.Object
    implements java.lang.Runnable
    • Constructor Summary

      Constructors 
      Constructor Description
      Worker​(QueuedConsumer<T> parent, java.util.function.Consumer<T> consumer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myConsumer

        private final java.util.function.Consumer<T> myConsumer
    • Constructor Detail

      • Worker

        Worker​(QueuedConsumer<T> parent,
               java.util.function.Consumer<T> consumer)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable