Class ProcessingService.CallableConsumer<W>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<java.lang.Boolean>
    Enclosing class:
    ProcessingService

    static final class ProcessingService.CallableConsumer<W>
    extends java.lang.Object
    implements java.util.concurrent.Callable<java.lang.Boolean>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Consumer<W> myConsumer  
      private java.util.Queue<W> myWork  
    • Constructor Summary

      Constructors 
      Constructor Description
      CallableConsumer​(java.util.Queue<W> work, java.util.function.Consumer<W> consumer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean call()  
      • 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<W> myConsumer
      • myWork

        private final java.util.Queue<W> myWork
    • Constructor Detail

      • CallableConsumer

        CallableConsumer​(java.util.Queue<W> work,
                         java.util.function.Consumer<W> consumer)
    • Method Detail

      • call

        public java.lang.Boolean call()
                               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<W>
        Throws:
        java.lang.Exception