@ManagedResource(description="Managed ThreadPool") public class ManagedThreadPool extends Object implements ManagedThreadPoolMBean
| Constructor and Description |
|---|
ManagedThreadPool(CamelContext camelContext,
ThreadPoolExecutor threadPool,
String id,
String sourceId,
String routeId,
String threadPoolProfileId) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
String |
getCamelId() |
String |
getCamelManagementName() |
long |
getCompletedTaskCount() |
CamelContext |
getContext() |
int |
getCorePoolSize() |
String |
getId() |
long |
getKeepAliveTime() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
int |
getPoolSize() |
String |
getRouteId() |
String |
getSourceId() |
long |
getTaskCount() |
int |
getTaskQueueRemainingCapacity() |
long |
getTaskQueueSize() |
ThreadPoolExecutor |
getThreadPool() |
String |
getThreadPoolProfileId() |
void |
init(ManagementStrategy strategy) |
boolean |
isAllowCoreThreadTimeout() |
boolean |
isShutdown() |
boolean |
isTaskQueueEmpty() |
void |
purge() |
void |
setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout) |
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveTime(long keepAliveTimeInSeconds) |
void |
setMaximumPoolSize(int maximumPoolSize) |
public ManagedThreadPool(CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
public void init(ManagementStrategy strategy)
public CamelContext getContext()
public ThreadPoolExecutor getThreadPool()
public String getCamelId()
getCamelId in interface ManagedThreadPoolMBeanpublic String getCamelManagementName()
getCamelManagementName in interface ManagedThreadPoolMBeanpublic String getId()
getId in interface ManagedThreadPoolMBeanpublic String getSourceId()
getSourceId in interface ManagedThreadPoolMBeanpublic String getRouteId()
getRouteId in interface ManagedThreadPoolMBeanpublic String getThreadPoolProfileId()
getThreadPoolProfileId in interface ManagedThreadPoolMBeanpublic int getCorePoolSize()
getCorePoolSize in interface ManagedThreadPoolMBeanpublic void setCorePoolSize(int corePoolSize)
setCorePoolSize in interface ManagedThreadPoolMBeanpublic int getPoolSize()
getPoolSize in interface ManagedThreadPoolMBeanpublic int getMaximumPoolSize()
getMaximumPoolSize in interface ManagedThreadPoolMBeanpublic void setMaximumPoolSize(int maximumPoolSize)
setMaximumPoolSize in interface ManagedThreadPoolMBeanpublic int getLargestPoolSize()
getLargestPoolSize in interface ManagedThreadPoolMBeanpublic int getActiveCount()
getActiveCount in interface ManagedThreadPoolMBeanpublic long getTaskCount()
getTaskCount in interface ManagedThreadPoolMBeanpublic long getCompletedTaskCount()
getCompletedTaskCount in interface ManagedThreadPoolMBeanpublic long getTaskQueueSize()
getTaskQueueSize in interface ManagedThreadPoolMBeanpublic boolean isTaskQueueEmpty()
isTaskQueueEmpty in interface ManagedThreadPoolMBeanpublic long getKeepAliveTime()
getKeepAliveTime in interface ManagedThreadPoolMBeanpublic void setKeepAliveTime(long keepAliveTimeInSeconds)
setKeepAliveTime in interface ManagedThreadPoolMBeanpublic boolean isAllowCoreThreadTimeout()
isAllowCoreThreadTimeout in interface ManagedThreadPoolMBeanpublic void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
setAllowCoreThreadTimeout in interface ManagedThreadPoolMBeanpublic boolean isShutdown()
isShutdown in interface ManagedThreadPoolMBeanpublic void purge()
purge in interface ManagedThreadPoolMBeanpublic int getTaskQueueRemainingCapacity()
getTaskQueueRemainingCapacity in interface ManagedThreadPoolMBeanApache Camel