public interface ThreadFactory
ThreadFactory describes a factory for threads of execution
modeled as WorkerTasks.| Modifier and Type | Method and Description |
|---|---|
WorkerTask |
createWorkerThread(String name,
WorkerTask task,
boolean daemon)
Creates a new thread of execution for the supplied task.
|
WorkerTask createWorkerThread(String name, WorkerTask task, boolean daemon)
WorkerTask is 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 (true or an
user thread (false).WorkerTask wrapper to control start and termination of
the thread.Copyright © 2016 SNMP4J.org. All Rights Reserved.