Class InstrumentedThreadPoolFactory

java.lang.Object
org.apache.camel.component.micrometer.spi.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 Details

    • InstrumentedThreadPoolFactory

      public InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    • InstrumentedThreadPoolFactory

      public InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry metricRegistry, org.apache.camel.spi.ThreadPoolFactory threadPoolFactory)
  • Method Details

    • 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
    • setPrefix

      public void setPrefix(String prefix)