public class PredicatedTaskRunner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentLinkedQueue<PredicatedExecutable> |
jobQueue |
protected boolean |
stop |
protected ExecutorService |
threadPool |
| Constructor and Description |
|---|
PredicatedTaskRunner(int numberOfThreads) |
protected volatile ConcurrentLinkedQueue<PredicatedExecutable> jobQueue
protected ExecutorService threadPool
protected volatile boolean stop
public void scedule(PredicatedExecutable job)
public void shutDown()
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.