|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.constructs.nonstop.util.CountingThreadFactory
public class CountingThreadFactory
A custom ThreadFactory
that maintains a count of how many threads this factory has created
Constructor Summary | |
---|---|
CountingThreadFactory(java.util.concurrent.ThreadFactory actualFactory)
Constructor accepting the actual thread factory that will create the threads |
Method Summary | |
---|---|
int |
getNumberOfThreads()
Returns the number of threads this factory has created and currently alive |
java.lang.Thread |
newThread(java.lang.Runnable r)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountingThreadFactory(java.util.concurrent.ThreadFactory actualFactory)
actualFactory
- the actual factoryMethod Detail |
---|
public java.lang.Thread newThread(java.lang.Runnable r)
newThread
in interface java.util.concurrent.ThreadFactory
public int getNumberOfThreads()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |