public class MinPooledExecutor
extends java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
protected int |
keepAliveSize
The number of threads to keep alive threads
|
| Constructor and Description |
|---|
MinPooledExecutor(java.util.concurrent.BlockingQueue queue,
int poolSize)
Construct a new executor
|
MinPooledExecutor(int poolSize)
Construct a new executor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKeepAliveSize() |
void |
setKeepAliveSize(int keepAliveSize) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringpublic MinPooledExecutor(int poolSize)
poolSize - the maximum pool sizepublic MinPooledExecutor(java.util.concurrent.BlockingQueue queue,
int poolSize)
queue - the queue for any requestspoolSize - the maximum pool size