jsat.utils
Class RunnableConsumer
- java.lang.Object
-
- jsat.utils.RunnableConsumer
-
- All Implemented Interfaces:
- java.lang.Runnable
public class RunnableConsumer extends java.lang.Object implements java.lang.RunnableThe RunnableConsumer is meant to be used in conjunction withPoisonRunnableand anExecutorServiceto implement a consumer / produce model. It will consume runnables from a queue and immediately call its run method. Termination occurs when aPoisonRunnableis 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 voidrun()
-
DataMelt 3.0 © DataMelt by jWork.ORG