public class JMXEnabledSharedExecutorPool.JMXEnabledSEPExecutor extends SEPExecutor implements JMXEnabledSharedExecutorPool.JMXEnabledSEPExecutorMBean
maxWorkers, tasks
Constructor and Description |
---|
JMXEnabledSEPExecutor(int poolSize,
int maxQueuedLength,
java.lang.String name,
java.lang.String jmxPath) |
Modifier and Type | Method and Description |
---|---|
int |
getCoreThreads()
Returns core pool size of thread pool.
|
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() |
addTask, awaitTermination, getActiveCount, getCompletedTasks, getCurrentlyBlockedTasks, getMaximumThreads, getPendingTasks, getTotalBlockedTasks, isShutdown, isTerminated, maybeExecuteImmediately, onCompletion, shutdownNow
execute, execute, invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, newTaskFor, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentlyBlockedTasks, getMaximumThreads, getTotalBlockedTasks
getActiveCount, getCompletedTasks, getPendingTasks
public JMXEnabledSEPExecutor(int poolSize, int maxQueuedLength, java.lang.String name, java.lang.String jmxPath)
public void shutdown()
shutdown
in interface java.util.concurrent.ExecutorService
shutdown
in class SEPExecutor
public int getCoreThreads()
JMXEnabledThreadPoolExecutorMBean
getCoreThreads
in interface JMXEnabledThreadPoolExecutorMBean
public void setCoreThreads(int number)
JMXEnabledThreadPoolExecutorMBean
setCoreThreads
in interface JMXEnabledThreadPoolExecutorMBean
public void setMaximumThreads(int number)
JMXEnabledThreadPoolExecutorMBean
setMaximumThreads
in interface JMXEnabledThreadPoolExecutorMBean
Copyright © 2015 The Apache Software Foundation