| org.snmp4j.util.ThreadFactory
All known Subclasses: org.snmp4j.util.DefaultThreadFactory,
ThreadFactory | public interface ThreadFactory (Code) | | The ThreadFactory describes a factory for threads of execution
modeled as WorkerTask s.
author: Frank Fock version: 1.9 since: 1.9 |
createWorkerThread | WorkerTask createWorkerThread(String name, WorkerTask task, boolean daemon)(Code) | | Creates a new thread of execution for the supplied task. The returned
WorkerTask is a symetric 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.
Parameters: name - the name of the execution thread. Parameters: task - the task to be executed in the new thread. Parameters: daemon - indicates whether the new thread is a daemon (true or anuser thread (false ).the WorkerTask wrapper to control start and termination ofthe thread. |
|
|