public class JMXEnabledSingleThreadExecutor extends JMXEnabledThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
LocalAwareExecutorService.MaximumPoolSizeListener
metrics
blockingExecutionHandler, 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, shutdownNow
afterExecute, beforeExecute, createCachedThreadpoolWithMaxSize, createWithFixedPoolSize, createWithMaximumPoolSize, execute, execute, extractThrowable, getActiveTaskCount, getPendingTaskCount, handleOrLog, logExceptionsAfterExecute, maybeExecuteImmediately, maybeResetLocalSessionWrapper, newTaskFor, newTaskFor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setRejectedExecutionHandler, terminated, toString
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCorePoolSize, getMaximumPoolSize, setCorePoolSize
getCompletedTaskCount, getMaxTasksQueued
public JMXEnabledSingleThreadExecutor(java.lang.String threadPoolName, java.lang.String jmxPath)
public void setCoreThreads(int number)
JMXEnabledThreadPoolExecutorMBean
setCoreThreads
in interface JMXEnabledThreadPoolExecutorMBean
setCoreThreads
in class JMXEnabledThreadPoolExecutor
public void setMaximumThreads(int number)
JMXEnabledThreadPoolExecutorMBean
setMaximumThreads
in interface JMXEnabledThreadPoolExecutorMBean
setMaximumThreads
in class JMXEnabledThreadPoolExecutor
public void setMaximumPoolSize(int newMaximumPoolSize)
ResizableThreadPool
setMaximumPoolSize
in interface ResizableThreadPool
setMaximumPoolSize
in class JMXEnabledThreadPoolExecutor
public boolean isExecutedBy(java.lang.Thread test)
public org.apache.cassandra.concurrent.JMXEnabledSingleThreadExecutor.SingleThreadFactory getThreadFactory()
getThreadFactory
in class java.util.concurrent.ThreadPoolExecutor
public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
setThreadFactory
in class java.util.concurrent.ThreadPoolExecutor
Copyright © 2009- The Apache Software Foundation