public interface ThreadPoolManager
ThreadPoolManager
manages thread pools.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_THREADPOOL_NAME
The default thread pool name
|
Modifier and Type | Method and Description |
---|---|
ThreadPool |
create(ThreadPoolConfig config)
Create a new thread pool with this configuration.
|
ThreadPool |
create(ThreadPoolConfig config,
java.lang.String label)
Create a new thread pool with this configuration.
|
ThreadPool |
get(java.lang.String name)
Get a thread pool.
|
void |
release(ThreadPool pool)
Release the thread pool again.
|
static final java.lang.String DEFAULT_THREADPOOL_NAME
ThreadPool get(java.lang.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, java.lang.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)
pool
- The thread pool to release"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"