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.| Constructor and Description |
|---|
MultiWorkerThread() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getThreadName()
Returns the name of the worker thread used by this WorkerThread.
|
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, postTask, run, start, stop, takeTaskrunTaskprotected 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 SingleWorkerThreadCopyright © 2002-2011. All Rights Reserved.