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(io.micrometer.core.instrument.MeterRegistry meterRegistry) |
InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry 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) |
void |
setPrefix(String prefix) |
public InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry)
public InstrumentedThreadPoolFactory(io.micrometer.core.instrument.MeterRegistry 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
public void setPrefix(String prefix)
Apache Camel