|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.util.NamedThreadFactory
public class NamedThreadFactory
A ThreadFactory
that sets names to the threads created by this factory. Threads created by this factory
will take names in the form of the string namePrefix + " thread-" + threadNum
where threadNum is the
count of threads created by this type of factory.
Constructor Summary | |
---|---|
NamedThreadFactory(String namePrefix)
Constructor accepting the prefix of the threads that will be created by this ThreadFactory |
|
NamedThreadFactory(String namePrefix,
boolean daemon)
Constructor accepting the prefix of the threads that will be created by this ThreadFactory |
Method Summary | |
---|---|
Thread |
newThread(Runnable runnable)
Returns a new thread using a name as specified by this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedThreadFactory(String namePrefix, boolean daemon)
ThreadFactory
namePrefix
- Prefix for names of threadspublic NamedThreadFactory(String namePrefix)
ThreadFactory
namePrefix
- Prefix for names of threadsMethod Detail |
---|
public Thread newThread(Runnable runnable)
newThread
in interface ThreadFactory
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |