|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This attribute controller can be used by active components that need
registering one or more tasks. It must be used by components using the
ThreadPerTaskTaskManagerControllerMixin
activity manager. It allows defining whether tasks have to be executed by a
thread pool or only by a thread. Moreover, in cases the thread pool has been
chosen, it allows setting the initial number of threads, as well as the max
capacity of the pool.
ThreadPoolController
Method Summary | |
int |
getInitialCapacity()
Returns the maximum capacity of the pool. |
int |
getInitialNumberOfThreads()
Returns the initial number of threads in the pool. |
boolean |
getUsePool()
Indicates whether a pool of threads is used for each task of the component. |
void |
setInitialCapacity(int i)
Sets the initial capacity of the pool. |
void |
setInitialNumberOfThreads(int i)
Sets the initial number of threads in the pool. |
void |
setUsePool(boolean usePool)
Determines whether a pool of threads should be used for each task of the component. |
Method Detail |
public void setUsePool(boolean usePool)
usePool
- the value to set.public boolean getUsePool()
true
if task is executed by a pool of thread.public void setInitialCapacity(int i)
i
- the initial capacity of the pool.public int getInitialCapacity()
public void setInitialNumberOfThreads(int i)
i
- the initial number of threads in the pool.public int getInitialNumberOfThreads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |