Class 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
    • Method Detail

      • init

        public void init​(org.apache.camel.spi.ManagementStrategy strategy)
      • getContext

        public org.apache.camel.CamelContext getContext()
      • getCamelId

        public String getCamelId()
        Specified by:
        getCamelId in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getCamelManagementName

        public String getCamelManagementName()
        Specified by:
        getCamelManagementName in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getSourceId

        public String getSourceId()
        Specified by:
        getSourceId in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getRouteId

        public String getRouteId()
        Specified by:
        getRouteId in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getThreadPoolProfileId

        public String getThreadPoolProfileId()
        Specified by:
        getThreadPoolProfileId in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getCorePoolSize

        public int getCorePoolSize()
        Specified by:
        getCorePoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • setCorePoolSize

        public void setCorePoolSize​(int corePoolSize)
        Specified by:
        setCorePoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getPoolSize

        public int getPoolSize()
        Specified by:
        getPoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getMaximumPoolSize

        public int getMaximumPoolSize()
        Specified by:
        getMaximumPoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • setMaximumPoolSize

        public void setMaximumPoolSize​(int maximumPoolSize)
        Specified by:
        setMaximumPoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getLargestPoolSize

        public int getLargestPoolSize()
        Specified by:
        getLargestPoolSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getActiveCount

        public int getActiveCount()
        Specified by:
        getActiveCount in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getTaskCount

        public long getTaskCount()
        Specified by:
        getTaskCount in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getCompletedTaskCount

        public long getCompletedTaskCount()
        Specified by:
        getCompletedTaskCount in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getTaskQueueSize

        public long getTaskQueueSize()
        Specified by:
        getTaskQueueSize in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • isTaskQueueEmpty

        public boolean isTaskQueueEmpty()
        Specified by:
        isTaskQueueEmpty in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getKeepAliveTime

        public long getKeepAliveTime()
        Specified by:
        getKeepAliveTime in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • setKeepAliveTime

        public void setKeepAliveTime​(long keepAliveTimeInSeconds)
        Specified by:
        setKeepAliveTime in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • isAllowCoreThreadTimeout

        public boolean isAllowCoreThreadTimeout()
        Specified by:
        isAllowCoreThreadTimeout in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • setAllowCoreThreadTimeout

        public void setAllowCoreThreadTimeout​(boolean allowCoreThreadTimeout)
        Specified by:
        setAllowCoreThreadTimeout in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • isShutdown

        public boolean isShutdown()
        Specified by:
        isShutdown in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • purge

        public void purge()
        Specified by:
        purge in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean
      • getTaskQueueRemainingCapacity

        public int getTaskQueueRemainingCapacity()
        Specified by:
        getTaskQueueRemainingCapacity in interface org.apache.camel.api.management.mbean.ManagedThreadPoolMBean