public interface ThreadPoolConfig
Modifier and Type | Interface and Description |
---|---|
static class |
ThreadPoolConfig.ThreadPoolPolicy
The thread pool policies.
|
static class |
ThreadPoolConfig.ThreadPriority |
Modifier and Type | Method and Description |
---|---|
ThreadPoolConfig.ThreadPoolPolicy |
getBlockPolicy()
Return the block policy.
|
java.util.concurrent.ThreadFactory |
getFactory()
Return the thread pool factory.
|
long |
getKeepAliveTime()
Return the keep alive time.
|
int |
getMaxPoolSize()
Return the maximum pool size
|
int |
getMinPoolSize()
Return the minimum pool size.
|
ThreadPoolConfig.ThreadPriority |
getPriority()
Return the priority for the threads.
|
int |
getQueueSize()
Return the queue size.
|
int |
getShutdownWaitTimeMs()
Return the shutdown wait time in ms.
|
boolean |
isDaemon()
Return if daemon threads should be created.
|
boolean |
isShutdownGraceful()
Should this pool shutdown graceful.
|
int getMinPoolSize()
int getMaxPoolSize()
int getQueueSize()
long getKeepAliveTime()
ThreadPoolConfig.ThreadPoolPolicy getBlockPolicy()
boolean isShutdownGraceful()
true
if the pool should shutdown graceful.int getShutdownWaitTimeMs()
java.util.concurrent.ThreadFactory getFactory()
null
ThreadPoolConfig.ThreadPriority getPriority()
boolean isDaemon()
true
if daemon threads should be created.Copyright © 2014 The Apache Software Foundation. All rights reserved.