Class QueuedSupplier.Worker<T>

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

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

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.BlockingQueue<T> myQueue  
      private java.util.function.Supplier<T> mySupplier  
    • Constructor Summary

      Constructors 
      Constructor Description
      Worker​(java.util.concurrent.BlockingQueue<T> queue, java.util.function.Supplier<T> reader)  
    • 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

      • myQueue

        private final java.util.concurrent.BlockingQueue<T> myQueue
      • mySupplier

        private final java.util.function.Supplier<T> mySupplier
    • Constructor Detail

      • Worker

        Worker​(java.util.concurrent.BlockingQueue<T> queue,
               java.util.function.Supplier<T> reader)
    • Method Detail

      • run

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