- All Known Implementing Classes:
public interface ThreadFactoryThe
ThreadFactorydescribes a factory for threads of execution modeled as
- Frank Fock
WorkerTask createWorkerThread(java.lang.String name, WorkerTask task, boolean daemon)Creates a new thread of execution for the supplied task. The returned
WorkerTaskis a symmetric wrapper for the supplied one. When the returned task is being run, the supplied one will be executed in a new thread of execution until it either terminates or the
WorkerTask.terminate()method has been called.
name- the name of the execution thread.
task- the task to be executed in the new thread.
daemon- indicates whether the new thread is a daemon (
trueor an user thread (
WorkerTaskwrapper to control start and termination of the thread.