public class JmxManagedThreadPool extends SeExecutorService implements JmxManagedThreadPoolMBean, MBeanService<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(MBeanServiceContainer mBeanServiceContainer) |
void |
stop(MBeanServiceContainer mBeanServiceContainer) |
executeLongRunning, executeShortRunning, getExecuteJobsRunnable, scheduleprotected final BlockingQueue<Runnable> threadPoolQueue
public JmxManagedThreadPool(BlockingQueue<Runnable> queue, ThreadPoolExecutor executor)
public void start(MBeanServiceContainer mBeanServiceContainer)
start in interface MBeanService<JmxManagedThreadPool>public void stop(MBeanServiceContainer mBeanServiceContainer)
stop in interface MBeanService<JmxManagedThreadPool>public JmxManagedThreadPool getValue()
getValue in interface MBeanService<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 © 2015. All rights reserved.