|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActiveComponentAttributeController
This attribute controller can be used by active components that need
registering one or more tasks. It must be used by components using the
org.objectweb.dream.control.activity.manager.ThreadPerTaskActivityManager
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.
Method Summary | |
---|---|
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 |
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 |
---|
void setUsePool(boolean usePool)
usePool
- the value to set.boolean getUsePool()
true
if task is executed by a pool of thread.void setInitialNumberOfThreads(int i)
i
- the initial number of threads in the pool.int getInitialNumberOfThreads()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |