|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThreadPoolManager
The ThreadPoolManager manages thread pools.
| Field Summary | |
|---|---|
static String |
DEFAULT_THREADPOOL_NAME
The default thread pool name |
| Method Summary | |
|---|---|
ThreadPool |
create(ThreadPoolConfig config)
Create a new thread pool with this configuration. |
ThreadPool |
create(ThreadPoolConfig config,
String label)
Create a new thread pool with this configuration. |
ThreadPool |
get(String name)
Get a thread pool. |
void |
release(ThreadPool pool)
Release the thread pool again. |
| Field Detail |
|---|
static final String DEFAULT_THREADPOOL_NAME
| Method Detail |
|---|
ThreadPool get(String name)
release(ThreadPool) method.
name - The name of the thread pool or null for the default pool.
ThreadPool create(ThreadPoolConfig config)
release(ThreadPool) method.
config - The thread pool configuration.
ThreadPool create(ThreadPoolConfig config,
String label)
release(ThreadPool) method.
config - The thread pool configuration.label - An optional label for the thread pool. The label
will be appended to the name of the pool.
void release(ThreadPool pool)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||