Documentation of 'jsat.utils.RunnableConsumer' Java class
RunnableConsumer
jsat.utils

Class RunnableConsumer

  • All Implemented Interfaces:
    java.lang.Runnable


    public class RunnableConsumer
    extends java.lang.Object
    implements java.lang.Runnable
    The RunnableConsumer is meant to be used in conjunction with PoisonRunnable and an ExecutorService to implement a consumer / produce model. It will consume runnables from a queue and immediately call its run method. Termination occurs when a PoisonRunnable is encountered, after it's run method is called.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RunnableConsumer(java.util.concurrent.BlockingQueue<java.lang.Runnable> jobQueue)
      Creates a new runnable that will consume and run other runnables.
    • Method Summary

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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RunnableConsumer

        public RunnableConsumer(java.util.concurrent.BlockingQueue<java.lang.Runnable> jobQueue)
        Creates a new runnable that will consume and run other runnables.
        Parameters:
        jobQueue - the queue from which to obtain runnable objects.
    • Method Detail

      • run

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

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.