public class MultiWorkerThread extends SingleWorkerThread
WorkerThread that uses one or more threads to run
Tasks subclasses. SingleWorkerThread.postTask(foxtrot.Task) method returns immediately in any case.| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
runners |
debug| Constructor and Description |
|---|
MultiWorkerThread() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getThreadName()
Returns the name of the worker thread used by this WorkerThread.
|
(package private) boolean |
hasPendingTasks() |
boolean |
isWorkerThread()
Returns whether the current thread is a thread used by the implementation of
this WorkerThread to run
Tasks. |
protected void |
run(Task task)
Executes the given
Task. |
isAlive, isThreadInterrupted, nextSequence, postTask, run, start, stop, takeTaskrunTaskprotected java.lang.String getThreadName()
SingleWorkerThreadgetThreadName in class SingleWorkerThreadprotected void run(Task task)
SingleWorkerThreadTask.
This implementation will just call AbstractWorkerThread.runTask(foxtrot.Task).run in class SingleWorkerThreadpublic boolean isWorkerThread()
WorkerThreadTasks.isWorkerThread in interface WorkerThreadisWorkerThread in class SingleWorkerThreadboolean hasPendingTasks()
hasPendingTasks in class SingleWorkerThread