@ProviderType
public interface ThreadPoolManager
ThreadPoolManager
manages thread pools.Modifier and Type | Field and Description |
---|---|
static 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,
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.
|
static final String DEFAULT_THREADPOOL_NAME
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)
Copyright © 2017 The Apache Software Foundation. All rights reserved.