public class JmxManagedThreadPool extends SeExecutorService implements JmxManagedThreadPoolMBean, PlatformService<JmxManagedThreadPool>
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<Runnable> |
threadPoolQueue |
threadPoolExecutor| Constructor and Description |
|---|
JmxManagedThreadPool(BlockingQueue<Runnable> queue,
ThreadPoolExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
int |
getPoolSize() |
int |
getQueueCount() |
long |
getTaskCount() |
ThreadPoolExecutor |
getThreadPoolExecutor() |
JmxManagedThreadPool |
getValue() |
void |
purgeThreadPool() |
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveTime(long time,
TimeUnit unit) |
void |
setMaximumPoolSize(int maximumPoolSize) |
void |
start(PlatformServiceContainer mBeanServiceContainer) |
void |
stop(PlatformServiceContainer mBeanServiceContainer) |
executeLongRunning, executeShortRunning, getExecuteJobsRunnable, scheduleprotected final BlockingQueue<Runnable> threadPoolQueue
public JmxManagedThreadPool(BlockingQueue<Runnable> queue, ThreadPoolExecutor executor)
public void start(PlatformServiceContainer mBeanServiceContainer)
start in interface PlatformService<JmxManagedThreadPool>public void stop(PlatformServiceContainer mBeanServiceContainer)
stop in interface PlatformService<JmxManagedThreadPool>public JmxManagedThreadPool getValue()
getValue in interface PlatformService<JmxManagedThreadPool>public void setCorePoolSize(int corePoolSize)
setCorePoolSize in interface JmxManagedThreadPoolMBeanpublic void setMaximumPoolSize(int maximumPoolSize)
setMaximumPoolSize in interface JmxManagedThreadPoolMBeanpublic int getMaximumPoolSize()
getMaximumPoolSize in interface JmxManagedThreadPoolMBeanpublic void setKeepAliveTime(long time,
TimeUnit unit)
public void purgeThreadPool()
purgeThreadPool in interface JmxManagedThreadPoolMBeanpublic int getPoolSize()
getPoolSize in interface JmxManagedThreadPoolMBeanpublic int getActiveCount()
getActiveCount in interface JmxManagedThreadPoolMBeanpublic int getLargestPoolSize()
getLargestPoolSize in interface JmxManagedThreadPoolMBeanpublic long getTaskCount()
getTaskCount in interface JmxManagedThreadPoolMBeanpublic long getCompletedTaskCount()
getCompletedTaskCount in interface JmxManagedThreadPoolMBeanpublic int getQueueCount()
getQueueCount in interface JmxManagedThreadPoolMBeanpublic ThreadPoolExecutor getThreadPoolExecutor()
Copyright © 2022. All rights reserved.