public class DaemonThreadFactory extends NamedThreadFactory
COAP_THREAD_GROUP, SCANDIUM_THREAD_GROUP| Constructor and Description |
|---|
DaemonThreadFactory(String threadPrefix)
Creates a new factory for a prefix.
|
DaemonThreadFactory(String threadPrefix,
ThreadGroup threadGroup)
Creates a new factory for a prefix and thread group.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
createDaemonThreads()
Always returns
true since this is a factory for daemon threads. |
newThreadpublic DaemonThreadFactory(String threadPrefix)
Sets the thread group to the default thread group.
threadPrefix - the prefix, that becomes part of the name of all
threads, created by this factory.public DaemonThreadFactory(String threadPrefix, ThreadGroup threadGroup)
threadPrefix - the prefix, that becomes part of the name of all
threads, created by this factory.threadGroup - The thread group that thread created by this factory should belong to,
may be null.protected boolean createDaemonThreads()
true since this is a factory for daemon threads.createDaemonThreads in class NamedThreadFactorytrueCopyright © 2019 Eclipse Foundation. All rights reserved.