|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simoes.util.ThreadPool
The Thread Pool will execute any threads passed in in a FIFO order. Available Thread will pick up any incoming requests. Any requests when all Threads are busy will be handled as soon as possible.
Constructor Summary | |
ThreadPool(int n)
|
Method Summary | |
void |
add(java.lang.Runnable target)
Use this to add to the Thread Pool. |
void |
closePool()
Closes the ThreadPool. |
int |
getQueueSize()
Returns the number of objects waiting for a thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadPool(int n)
Method Detail |
public void add(java.lang.Runnable target)
public void closePool()
public int getQueueSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |