|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Controller interface for thread pool. It allows to increase or decrease the number of thread in the pool.
Method Summary | |
void |
addThreads(int i)
Adds threads in the pool. |
int |
getNbActiveThread()
Returns the number of currently active threads. |
void |
removeThreads(int i)
Removes threads from the pool. |
Method Detail |
public int getNbActiveThread()
public void addThreads(int i) throws ThreadPoolOverflowException, IllegalLifeCycleException
TaskLifeCycleController
)
the added threads are immediatly interrupted.
i
- the number of thread to add.
ThreadPoolOverflowException
- if
getNbActiveThread() + i > getCapacity()
IllegalLifeCycleException
- if the component this interface belong
has a lifecycle controller and is in the
LifeCycleController.STOPPED
state.public void removeThreads(int i) throws IllegalLifeCycleException
i
- the number of thread to remove.
IllegalLifeCycleException
- if the component this interface belong
has a lifecycle controller and is in the
LifeCycleController.STOPPED
state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |