|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.johnmunsch.threadpool.ThreadPoolImpl
| Constructor Summary | |
ThreadPoolImpl(int minThreads,
int maxThreads,
int maxIdleTime)
|
|
| Method Summary | |
void |
addJob(java.lang.Runnable job)
The fundamental function of the thread pool. |
Stats |
getStats()
Returns a stats object that tells the state of the thread pool at the time the function was called. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadPoolImpl(int minThreads,
int maxThreads,
int maxIdleTime)
throws java.lang.IllegalArgumentException
| Method Detail |
public void addJob(java.lang.Runnable job)
addJob in interface ThreadPoolpublic Stats getStats()
getStats in interface ThreadPool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||