|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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 java.util.concurrent.atomic.AtomicInteger |
m_cNameSuffix The thread name counter. |
protected java.lang.String |
m_sNamePrefix The prefix to use for unnammed threads produced by the factory. |
Constructor Summary | |
---|---|
DaemonThreadFactory() Construct a new DameonThreadFacotry. |
|
DaemonThreadFactory(java.lang.String sPrefix) Construct a new DameonThreadFacotry. |
Method Summary | |
---|---|
java.lang.Thread |
makeThread(java.lang.ThreadGroup group, java.lang.Runnable runnable, java.lang.String sName) Create a Thread with the specified group, runnable, and name. |
java.lang.Thread |
newThread(java.lang.Runnable r) Constructs a new Thread. |
Field Detail |
---|
protected final java.lang.String m_sNamePrefix
protected final java.util.concurrent.atomic.AtomicInteger m_cNameSuffix
public static final DaemonThreadFactory INSTANCE
Constructor Detail |
---|
public DaemonThreadFactory()
public DaemonThreadFactory(java.lang.String sPrefix)
sPrefix
- the prefix for unnamed threadsMethod Detail |
---|
public java.lang.Thread makeThread(java.lang.ThreadGroup group, java.lang.Runnable runnable, java.lang.String sName)
group
- (optional) the thread's thread grouprunnable
- (optional) the thread's runnablesName
- (optional) the thread's namepublic java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
r
- a runnable to be executed by new thread instance
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |