Class InstrumentedThreadPoolFactory

  • All Implemented Interfaces:
    org.apache.camel.spi.ThreadPoolFactory

    public class InstrumentedThreadPoolFactory
    extends Object
    implements org.apache.camel.spi.ThreadPoolFactory
    This implements a ThreadPoolFactory and generates an Instrumented versions of ExecutorService used to monitor performance of each thread using Metrics.
    • Constructor Detail

      • InstrumentedThreadPoolFactory

        public InstrumentedThreadPoolFactory​(com.codahale.metrics.MetricRegistry metricRegistry)
      • InstrumentedThreadPoolFactory

        public InstrumentedThreadPoolFactory​(com.codahale.metrics.MetricRegistry metricRegistry,
                                             org.apache.camel.spi.ThreadPoolFactory threadPoolFactory)
    • Method Detail

      • newCachedThreadPool

        public ExecutorService newCachedThreadPool​(ThreadFactory threadFactory)
        Specified by:
        newCachedThreadPool in interface org.apache.camel.spi.ThreadPoolFactory
      • newThreadPool

        public ExecutorService newThreadPool​(org.apache.camel.spi.ThreadPoolProfile profile,
                                             ThreadFactory threadFactory)
        Specified by:
        newThreadPool in interface org.apache.camel.spi.ThreadPoolFactory
      • newScheduledThreadPool

        public ScheduledExecutorService newScheduledThreadPool​(org.apache.camel.spi.ThreadPoolProfile profile,
                                                               ThreadFactory threadFactory)
        Specified by:
        newScheduledThreadPool in interface org.apache.camel.spi.ThreadPoolFactory