public class EdalThreadPoolExcecutor extends ThreadPoolExecutor
ThreadPoolExecutor that will be automatically
closed, when calling DataManager.shutdown()ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
EdalThreadPoolExcecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue)
Constructor uses the super constructor and start a MonitorThread.
|
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 EdalThreadPoolExcecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue)
corePoolSize - the number of threads to keep in the pool, even if they are
idle, unless allowCoreThreadTimeOut is setmaximumPoolSize - the maximum number of threads to allow in the poolkeepAliveTime - when the number of threads is greater than the core, this is
the maximum time that excess idle threads will wait for new
tasks before terminating.unit - the time unit for the keepAliveTime argumentworkQueue - the queue to use for holding tasks before they are executed.
This queue will hold only the Runnable tasks submitted
by the execute method.IllegalArgumentException - if one of the following holds:corePoolSize < 0keepAliveTime < 0maximumPoolSize <= 0maximumPoolSize < corePoolSizeNullPointerException - if workQueue is nullCopyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.