@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.ManagedThreadPoolMBean
public String getCamelManagementName()
getCamelManagementName
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public String getId()
getId
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public String getSourceId()
getSourceId
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public String getRouteId()
getRouteId
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public String getThreadPoolProfileId()
getThreadPoolProfileId
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getCorePoolSize()
getCorePoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public void setCorePoolSize(int corePoolSize)
setCorePoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getPoolSize()
getPoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getMaximumPoolSize()
getMaximumPoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public void setMaximumPoolSize(int maximumPoolSize)
setMaximumPoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getLargestPoolSize()
getLargestPoolSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getActiveCount()
getActiveCount
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public long getTaskCount()
getTaskCount
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public long getCompletedTaskCount()
getCompletedTaskCount
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public long getTaskQueueSize()
getTaskQueueSize
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public boolean isTaskQueueEmpty()
isTaskQueueEmpty
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public long getKeepAliveTime()
getKeepAliveTime
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public void setKeepAliveTime(long keepAliveTimeInSeconds)
setKeepAliveTime
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public boolean isAllowCoreThreadTimeout()
isAllowCoreThreadTimeout
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public void setAllowCoreThreadTimeout(boolean allowCoreThreadTimeout)
setAllowCoreThreadTimeout
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public boolean isShutdown()
isShutdown
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public void purge()
purge
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
public int getTaskQueueRemainingCapacity()
getTaskQueueRemainingCapacity
in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
Apache Camel