public class ManagedThreadPoolExecutor extends Object implements ThreadPoolExecutorMXBean
| Constructor and Description |
|---|
ManagedThreadPoolExecutor(ThreadPoolExecutor executor,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsCoreThreadTimeOut() |
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getCorePoolSize() |
long |
getKeepAliveTimeSeconds() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
ObjectName |
getObjectName() |
int |
getPoolSize() |
long |
getTaskCount() |
boolean |
isShutdown() |
boolean |
isTerminated() |
boolean |
isTerminating() |
int |
workQueueRemainingCapacity() |
int |
workQueueSize() |
public ManagedThreadPoolExecutor(@Nonnull ThreadPoolExecutor executor, @Nonnull String name) throws MalformedObjectNameException
MalformedObjectNameExceptionpublic boolean allowsCoreThreadTimeOut()
allowsCoreThreadTimeOut in interface ThreadPoolExecutorMXBeanpublic int getActiveCount()
getActiveCount in interface ThreadPoolExecutorMXBeanpublic long getCompletedTaskCount()
getCompletedTaskCount in interface ThreadPoolExecutorMXBeanpublic int getCorePoolSize()
getCorePoolSize in interface ThreadPoolExecutorMXBeanpublic long getKeepAliveTimeSeconds()
getKeepAliveTimeSeconds in interface ThreadPoolExecutorMXBeanpublic int getLargestPoolSize()
getLargestPoolSize in interface ThreadPoolExecutorMXBeanpublic int getMaximumPoolSize()
getMaximumPoolSize in interface ThreadPoolExecutorMXBeanpublic int getPoolSize()
getPoolSize in interface ThreadPoolExecutorMXBeanpublic long getTaskCount()
getTaskCount in interface ThreadPoolExecutorMXBeanpublic boolean isShutdown()
isShutdown in interface ThreadPoolExecutorMXBeanpublic boolean isTerminated()
isTerminated in interface ThreadPoolExecutorMXBeanpublic boolean isTerminating()
isTerminating in interface ThreadPoolExecutorMXBeanpublic int workQueueRemainingCapacity()
workQueueRemainingCapacity in interface ThreadPoolExecutorMXBeanpublic int workQueueSize()
workQueueSize in interface ThreadPoolExecutorMXBeanpublic ObjectName getObjectName()
getObjectName in interface ThreadPoolExecutorMXBeanCopyright © 2010-2016 JmxTrans team. All Rights Reserved.