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 aThreadPoolFactory
and generates an Instrumented versions of ExecutorService used to monitor performance of each thread using Metrics.
-
-
Constructor Summary
Constructors Constructor Description InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry)
InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry metricRegistry, org.apache.camel.spi.ThreadPoolFactory threadPoolFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
void
setPrefix(String prefix)
-
-
-
Constructor Detail
-
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 Detail
-
newCachedThreadPool
public ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
- 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
-
setPrefix
public void setPrefix(String prefix)
-
-