Executor, ExecutorService, ManageableThreadPoolExecutorServicepublic final class ManagedThreadPoolExecutor extends ThreadPoolExecutor implements ManageableThreadPoolExecutorService
ThreadPoolExecutor which implements ManageableThreadPoolExecutorService in order to allow
opting out of using EnhancedQueueExecutor.ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor | Description |
|---|---|
ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Runnable terminationTask) |
|
ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Executor handoffExecutor,
Runnable terminationTask) |
|
ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
Runnable terminationTask) |
|
ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
Executor handoffExecutor,
Runnable terminationTask) |
| Modifier and Type | Method | Description |
|---|---|---|
Executor |
getHandoffExecutor() |
|
StandardThreadPoolMXBean |
getThreadPoolMXBean() |
Create or acquire an MXBean instance for this thread pool.
|
void |
setHandoffExecutor(Executor handoffExecutor) |
|
protected void |
terminated() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitafterExecute, 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, toStringpublic ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Runnable terminationTask)
public ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
Runnable terminationTask)
public ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
Executor handoffExecutor,
Runnable terminationTask)
public ManagedThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
Executor handoffExecutor,
Runnable terminationTask)
public StandardThreadPoolMXBean getThreadPoolMXBean()
ManageableThreadPoolExecutorServicegetThreadPoolMXBean in interface ManageableThreadPoolExecutorServicenull)public Executor getHandoffExecutor()
public void setHandoffExecutor(Executor handoffExecutor)
protected void terminated()
terminated in class ThreadPoolExecutorCopyright © 2018 JBoss by Red Hat. All rights reserved.