|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.DaemonThreadFactory
public class DaemonThreadFactory
DaemonThreadFactory is a ThreadFactory which produces daemon threads.
Field Summary | |
---|---|
static DaemonThreadFactory |
INSTANCE A reuseable DaemonThreadFactory instance. |
protected AtomicInteger |
m_cNameSuffix The thread name counter. |
protected String |
m_sNamePrefix The prefix to use for unnammed threads produced by the factory. |
Constructor Summary | |
---|---|
DaemonThreadFactory() Construct a new DameonThreadFacotry. |
|
DaemonThreadFactory(String sPrefix) Construct a new DameonThreadFacotry. |
Method Summary | |
---|---|
Thread |
makeThread(ThreadGroup group, Runnable runnable, String sName) |
Thread |
newThread(Runnable r) Constructs a new Thread. |
Field Detail |
---|
protected final String m_sNamePrefix
protected final AtomicInteger m_cNameSuffix
public static final DaemonThreadFactory INSTANCE
Constructor Detail |
---|
public DaemonThreadFactory()
public DaemonThreadFactory(String sPrefix)
sPrefix
- the prefix for unnamed threadsMethod Detail |
---|
public Thread makeThread(ThreadGroup group, Runnable runnable, String sName)
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
r
- a runnable to be executed by new thread instance
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |