|
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 |
INSTANCEA reuseable DaemonThreadFactory instance. |
protected AtomicInteger |
m_cNameSuffixThe thread name counter. |
protected String |
m_sNamePrefixThe 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 threads| Method Detail |
|---|
public Thread makeThread(ThreadGroup group,
Runnable runnable,
String sName)
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryr - 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 | |||||||