|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPoolManager
Interface used to control the multi threaded execution of a task.
Field Summary | |
---|---|
static String |
ITF_NAME
Defualt name of this interface. |
Method Summary | |
---|---|
void |
addThread(Task task)
Adds a thread to the given task. |
int |
getNbActiveThreads(Task task)
Returns the number of currently active threads for the given task. |
Field Detail |
---|
static final String ITF_NAME
Method Detail |
---|
int getNbActiveThreads(Task task) throws IllegalTaskException
task
- a task;
IllegalTaskException
- if the given task is unknownvoid addThread(Task task) throws ThreadPoolOverflowException, IllegalTaskException
task
- a task
ThreadPoolOverflowException
- if the thread can't be allocated (pool
full for instance).
IllegalTaskException
- if the given task is unknown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |