public class CachedThreadPoolExecutor extends ThreadPoolExecutor
Executor that uses a Thread-pool. It is about the
same as Executors.newCachedThreadPool() and inherits all its implementation
from ThreadPoolExecutor. The only reason was to make it easier to be managed as component in an
IoC-Container such as spring.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
CachedThreadPoolExecutor()
The constructor.
|
CachedThreadPoolExecutor(ThreadFactory threadFactory)
The constructor.
|
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 CachedThreadPoolExecutor()
public CachedThreadPoolExecutor(ThreadFactory threadFactory)
threadFactory - is the ThreadFactory used to create new Threads.Copyright © 2001–2016 mmm-Team. All rights reserved.