Class ManagedThreads

All Implemented Interfaces:
org.apache.camel.api.management.ManagedInstance, org.apache.camel.api.management.mbean.ManagedCounterMBean, org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean, org.apache.camel.api.management.mbean.ManagedProcessorMBean, org.apache.camel.api.management.mbean.ManagedThreadsMBean, PerformanceCounter

@ManagedResource(description="Managed Threads") public class ManagedThreads extends ManagedProcessor implements org.apache.camel.api.management.mbean.ManagedThreadsMBean
  • Constructor Details

    • ManagedThreads

      public ManagedThreads(org.apache.camel.CamelContext context, org.apache.camel.processor.ThreadsProcessor processor, org.apache.camel.model.ProcessorDefinition<?> definition)
  • Method Details

    • isCallerRunsWhenRejected

      Specified by:
      isCallerRunsWhenRejected in interface org.apache.camel.api.management.mbean.ManagedThreadsMBean
    • getRejectedPolicy

      Specified by:
      getRejectedPolicy in interface org.apache.camel.api.management.mbean.ManagedThreadsMBean
    • getCorePoolSize

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

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

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

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

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

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

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

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

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

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