Class InstrumentedThreadPoolFactory
java.lang.Object
org.apache.camel.component.metrics.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.-
Field Summary
Fields inherited from interface org.apache.camel.spi.ThreadPoolFactory
FACTORY
-
Constructor Summary
ConstructorDescriptionInstrumentedThreadPoolFactory
(com.codahale.metrics.MetricRegistry metricRegistry) InstrumentedThreadPoolFactory
(com.codahale.metrics.MetricRegistry metricRegistry, org.apache.camel.spi.ThreadPoolFactory threadPoolFactory) -
Method Summary
Modifier and TypeMethodDescriptionnewCachedThreadPool
(ThreadFactory threadFactory) newScheduledThreadPool
(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory) newThreadPool
(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
-
Constructor Details
-
InstrumentedThreadPoolFactory
public InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry) -
InstrumentedThreadPoolFactory
public InstrumentedThreadPoolFactory(com.codahale.metrics.MetricRegistry metricRegistry, org.apache.camel.spi.ThreadPoolFactory threadPoolFactory)
-
-
Method Details
-
newCachedThreadPool
- Specified by:
newCachedThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-
newThreadPool
public ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory) - Specified by:
newThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-
newScheduledThreadPool
public ScheduledExecutorService newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory) - Specified by:
newScheduledThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-