public class JMXEnabledSingleThreadExecutor extends JMXEnabledThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicyLocalAwareExecutorService.MaximumPoolSizeListenermetricsblockingExecutionHandler, logger| Constructor and Description |
|---|
JMXEnabledSingleThreadExecutor(java.lang.String threadPoolName,
java.lang.String jmxPath) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.cassandra.concurrent.JMXEnabledSingleThreadExecutor.SingleThreadFactory |
getThreadFactory() |
boolean |
isExecutedBy(java.lang.Thread test) |
void |
setCoreThreads(int number)
Allows user to resize core pool size of the thread pool.
|
void |
setMaximumPoolSize(int newMaximumPoolSize)
Allows user to resize maximum size of the thread pool.
|
void |
setMaximumThreads(int number)
Allows user to resize maximum size of the thread pool.
|
void |
setThreadFactory(java.util.concurrent.ThreadFactory threadFactory) |
getCoreThreads, getCurrentlyBlockedTasks, getMaximumThreads, getTotalBlockedTasks, onFinalAccept, onFinalRejection, onInitialRejection, shutdown, shutdownNowafterExecute, beforeExecute, createCachedThreadpoolWithMaxSize, createWithFixedPoolSize, createWithMaximumPoolSize, execute, execute, extractThrowable, getActiveTaskCount, getPendingTaskCount, handleOrLog, logExceptionsAfterExecute, maybeExecuteImmediately, maybeResetTraceSessionWrapper, newTaskFor, newTaskForallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setRejectedExecutionHandler, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCorePoolSize, getMaximumPoolSize, setCorePoolSizegetCompletedTaskCount, getMaxTasksQueuedpublic JMXEnabledSingleThreadExecutor(java.lang.String threadPoolName,
java.lang.String jmxPath)
public void setCoreThreads(int number)
JMXEnabledThreadPoolExecutorMBeansetCoreThreads in interface JMXEnabledThreadPoolExecutorMBeansetCoreThreads in class JMXEnabledThreadPoolExecutorpublic void setMaximumThreads(int number)
JMXEnabledThreadPoolExecutorMBeansetMaximumThreads in interface JMXEnabledThreadPoolExecutorMBeansetMaximumThreads in class JMXEnabledThreadPoolExecutorpublic void setMaximumPoolSize(int newMaximumPoolSize)
ResizableThreadPoolsetMaximumPoolSize in interface ResizableThreadPoolsetMaximumPoolSize in class JMXEnabledThreadPoolExecutorpublic boolean isExecutedBy(java.lang.Thread test)
public org.apache.cassandra.concurrent.JMXEnabledSingleThreadExecutor.SingleThreadFactory getThreadFactory()
getThreadFactory in class java.util.concurrent.ThreadPoolExecutorpublic void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
setThreadFactory in class java.util.concurrent.ThreadPoolExecutorCopyright © 2009-2020 The Apache Software Foundation