ThreadPoolConfig |
ThreadPoolConfig.copy() |
Return a copy of this thread pool config.
|
static ThreadPoolConfig |
ThreadPoolConfig.defaultConfig() |
Create new client thread pool configuration instance.
|
ThreadPoolConfig |
ThreadPoolConfig.setCorePoolSize(int corePoolSize) |
Set the core thread pool size - the size of the thread pool will never bee smaller than this.
|
ThreadPoolConfig |
ThreadPoolConfig.setDaemon(boolean isDaemon) |
Set true if thread pool threads are daemons.
|
ThreadPoolConfig |
ThreadPoolConfig.setInitialClassLoader(java.lang.ClassLoader initialClassLoader) |
Specifies the context class loader that will be used by threads in this pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setKeepAliveTime(long time,
java.util.concurrent.TimeUnit unit) |
The max period of time a thread will wait for a new task to process.
|
ThreadPoolConfig |
ThreadPoolConfig.setMaxPoolSize(int maxPoolSize) |
Set max thread pool size.
|
ThreadPoolConfig |
ThreadPoolConfig.setPoolName(java.lang.String poolName) |
Set thread pool name.
|
ThreadPoolConfig |
ThreadPoolConfig.setPriority(int priority) |
Set priority of the threads in thread pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setQueue(java.util.Queue<java.lang.Runnable> queue) |
Set a queue implementation that will be used to temporarily store tasks when all threads in the thread pool are
busy.
|
ThreadPoolConfig |
ThreadPoolConfig.setQueueLimit(int queueLimit) |
Set the limit of the queue, where tasks are temporarily stored when all threads are busy.
|
ThreadPoolConfig |
ThreadPoolConfig.setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) |
Set ThreadFactory that will be used to create thread pool threads.
|