|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DispatchStrategyFactoryOperations
This interface is a factory to create dispatch strategies, and to manage thread pools.
DispatchStrategy
Method Summary | |
---|---|
DispatchStrategy |
create_default_dispatch_strategy()
Create a default dispatch strategy. |
DispatchStrategy |
create_same_thread_strategy()
Create a same thread dispatch strategy. |
DispatchStrategy |
create_thread_per_request_strategy()
Create a same thread per request dispatch strategy. |
DispatchStrategy |
create_thread_pool_strategy(int id)
Create a thread pool dispatch strategy. |
int |
create_thread_pool(int nthreads)
Create a thread pool containing nthreads. |
void |
destroy_thread_pool(int id)
Destroy a thread pool with the given id. |
Method Detail |
---|
int create_thread_pool(int nthreads)
nthreads
- The number of threads the pool in the poolvoid destroy_thread_pool(int id) throws InvalidThreadPool
OBJ_ADAPTER
exception.
id
- The thread pool id
InvalidThreadPool
- If the thread pool id is valid.DispatchStrategy create_thread_pool_strategy(int id) throws InvalidThreadPool
id
- The thread pool id
InvalidThreadPool
- If the thread pool id is valid.DispatchStrategy create_same_thread_strategy()
DispatchStrategy create_thread_per_request_strategy()
DispatchStrategy create_default_dispatch_strategy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |