|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.util.ThreadPool
public class ThreadPool
A fixed sized thread pool.
| Constructor Summary | |
|---|---|
ThreadPool(java.lang.String name,
int numThreads)
Creates a new ThreadPool of numThreads size. |
|
| Method Summary | |
|---|---|
void |
addJob(java.lang.Runnable runnable)
Adds a new job to the queue. |
void |
shutdown()
Turn off the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadPool(java.lang.String name,
int numThreads)
name - the name to use for the thread group and worker threads.numThreads - the number of threads to create.| Method Detail |
|---|
public void addJob(java.lang.Runnable runnable)
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||