public class JMXEnabledScheduledThreadPoolExecutor extends DebuggableScheduledThreadPoolExecutor implements JMXEnabledScheduledThreadPoolExecutorMBean
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicyrejectedExecutionHandler| Constructor and Description |
|---|
JMXEnabledScheduledThreadPoolExecutor(int corePoolSize,
NamedThreadFactory threadFactory,
java.lang.String jmxPath) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCompletedTasks()
Get the number of completed tasks
|
int |
getCoreThreads()
Returns core pool size of thread pool.
|
int |
getCurrentlyBlockedTasks() |
int |
getMaximumThreads()
Returns maximum pool size of thread pool.
|
long |
getPendingTasks()
Get the number of tasks waiting to be executed
|
int |
getTotalBlockedTasks() |
void |
setCoreThreads(int number)
Allows user to resize core pool size of the thread pool.
|
void |
setMaximumThreads(int number)
Allows user to resize maximum size of the thread pool.
|
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
afterExecute, scheduleAtFixedRate, scheduleWithFixedDelaydecorateTask, decorateTask, execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, submit, submit, submitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForpublic JMXEnabledScheduledThreadPoolExecutor(int corePoolSize,
NamedThreadFactory threadFactory,
java.lang.String jmxPath)
public void shutdown()
shutdown in interface java.util.concurrent.ExecutorServiceshutdown in class java.util.concurrent.ScheduledThreadPoolExecutorpublic java.util.List<java.lang.Runnable> shutdownNow()
shutdownNow in interface java.util.concurrent.ExecutorServiceshutdownNow in class java.util.concurrent.ScheduledThreadPoolExecutorpublic long getCompletedTasks()
public long getPendingTasks()
public int getTotalBlockedTasks()
public int getCurrentlyBlockedTasks()
public int getCoreThreads()
JMXEnabledThreadPoolExecutorMBeangetCoreThreads in interface JMXEnabledThreadPoolExecutorMBeanpublic void setCoreThreads(int number)
JMXEnabledThreadPoolExecutorMBeansetCoreThreads in interface JMXEnabledThreadPoolExecutorMBeanpublic int getMaximumThreads()
JMXEnabledThreadPoolExecutorMBeangetMaximumThreads in interface JMXEnabledThreadPoolExecutorMBeanpublic void setMaximumThreads(int number)
JMXEnabledThreadPoolExecutorMBeansetMaximumThreads in interface JMXEnabledThreadPoolExecutorMBeanCopyright © 2015 The Apache Software Foundation