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