public class InstrumentedThreadPoolFactory extends Object implements org.apache.camel.spi.ThreadPoolFactory
ThreadPoolFactory
and generates an Instrumented versions of ExecutorService used to
monitor performance of each thread using Metrics.Constructor and Description |
---|
InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry) |
InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry,
org.apache.camel.spi.ThreadPoolFactory threadPoolFactory) |
Modifier and Type | Method and Description |
---|---|
ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory) |
ScheduledExecutorService |
newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile,
ThreadFactory threadFactory) |
ExecutorService |
newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile,
ThreadFactory threadFactory) |
public InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry)
public InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry, org.apache.camel.spi.ThreadPoolFactory threadPoolFactory)
public ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
newCachedThreadPool
in interface org.apache.camel.spi.ThreadPoolFactory
public ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
newThreadPool
in interface org.apache.camel.spi.ThreadPoolFactory
public ScheduledExecutorService newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
newScheduledThreadPool
in interface org.apache.camel.spi.ThreadPoolFactory
Apache Camel