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