public class MinPooledExecutor extends ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
protected int |
keepAliveSize
The number of threads to keep alive threads
|
| Constructor and Description |
|---|
MinPooledExecutor(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, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic MinPooledExecutor(int poolSize)
poolSize - the maximum pool sizepublic MinPooledExecutor(BlockingQueue queue, int poolSize)
queue - the queue for any requestspoolSize - the maximum pool sizeCopyright © 2015 JBoss by Red Hat. All rights reserved.