|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.util.DefaultThreadFactory
public class DefaultThreadFactory
Nested Class Summary | |
---|---|
class |
DefaultThreadFactory.WorkerThread
|
Constructor Summary | |
---|---|
DefaultThreadFactory()
|
Method Summary | |
---|---|
WorkerTask |
createWorkerThread(java.lang.String name,
WorkerTask task,
boolean daemon)
Creates a new thread of execution for the supplied task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultThreadFactory()
Method Detail |
---|
public WorkerTask createWorkerThread(java.lang.String name, WorkerTask task, boolean daemon)
createWorkerThread
in interface ThreadFactory
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 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |