Class ManagedThreadPool
java.lang.Object
org.apache.camel.management.mbean.ManagedThreadPool
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
@ManagedResource(description="Managed ThreadPool")
public class ManagedThreadPool
extends Object
implements org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
Constructor Summary
ConstructorsConstructorDescriptionManagedThreadPool
(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId) -
Method Summary
Modifier and TypeMethodDescriptionint
long
org.apache.camel.CamelContext
int
getId()
long
int
int
int
long
int
long
void
init
(org.apache.camel.spi.ManagementStrategy strategy) boolean
boolean
boolean
void
purge()
void
setAllowCoreThreadTimeout
(boolean allowCoreThreadTimeout) void
setCorePoolSize
(int corePoolSize) void
setKeepAliveTime
(long keepAliveTimeInSeconds) void
setMaximumPoolSize
(int maximumPoolSize)
-
Constructor Details
-
ManagedThreadPool
public ManagedThreadPool(org.apache.camel.CamelContext camelContext, ThreadPoolExecutor threadPool, String id, String sourceId, String routeId, String threadPoolProfileId)
-
-
Method Details
-
init
-
getContext
-
getThreadPool
-
getCamelId
- Specified by:
getCamelId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCamelManagementName
- Specified by:
getCamelManagementName
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getId
- Specified by:
getId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getSourceId
- Specified by:
getSourceId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getRouteId
- Specified by:
getRouteId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getThreadPoolProfileId
- Specified by:
getThreadPoolProfileId
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCorePoolSize
- Specified by:
getCorePoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setCorePoolSize
- Specified by:
setCorePoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getPoolSize
- Specified by:
getPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getMaximumPoolSize
- Specified by:
getMaximumPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setMaximumPoolSize
- Specified by:
setMaximumPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getLargestPoolSize
- Specified by:
getLargestPoolSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getActiveCount
- Specified by:
getActiveCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskCount
- Specified by:
getTaskCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getCompletedTaskCount
- Specified by:
getCompletedTaskCount
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskQueueSize
- Specified by:
getTaskQueueSize
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isTaskQueueEmpty
- Specified by:
isTaskQueueEmpty
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getKeepAliveTime
- Specified by:
getKeepAliveTime
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setKeepAliveTime
- Specified by:
setKeepAliveTime
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isAllowCoreThreadTimeout
- Specified by:
isAllowCoreThreadTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
setAllowCoreThreadTimeout
- Specified by:
setAllowCoreThreadTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
isShutdown
- Specified by:
isShutdown
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
purge
- Specified by:
purge
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-
getTaskQueueRemainingCapacity
- Specified by:
getTaskQueueRemainingCapacity
in interfaceorg.apache.camel.api.management.mbean.ManagedThreadPoolMBean
-