|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ThreadPoolManager
The ThreadPoolManager is responsible for the management of a thread pool, whose purpose is to provide created and started threads to clients, using multiple but short-lived threads. The ThreadPoolManager's main task is to accept Runnable objects, to pass them to threads from the pool, and after the job is finished - to return back the threads in pool.
| Method Summary | |
|---|---|
void |
execute(java.lang.Runnable job,
int priority,
java.lang.String threadName)
Executes the job, by passing it to an idle thread process. |
void |
execute(java.lang.Runnable job,
java.lang.String threadName)
Executes the job, by passing it to an idle thread process. |
void |
reset()
All idle threads exit. |
| Method Detail |
|---|
void execute(java.lang.Runnable job,
java.lang.String threadName)
throws java.lang.IllegalArgumentException
job - job to be executedthreadName - name of job; the name will be assigned to the thread,
in which the job will be processed
java.lang.IllegalArgumentException - If any of the arguments is null
void execute(java.lang.Runnable job,
int priority,
java.lang.String threadName)
throws java.lang.IllegalArgumentException
Runnable - job to be executedint - the priority of the jobthreadName - name of job; the name will be assigned to the thread,
in which the job will be processed
java.lang.IllegalArgumentException - If any of the arguments is nullvoid reset()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||