Class TaggedThreadPoolBulkheadMetrics
- java.lang.Object
-
- io.github.resilience4j.micrometer.tagged.TaggedThreadPoolBulkheadMetrics
-
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class TaggedThreadPoolBulkheadMetrics extends java.lang.Object implements io.micrometer.core.instrument.binder.MeterBinderA micrometer binder that is used to register ThreadPoolBulkheadM exposedmetrics.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ConcurrentMap<java.lang.String,java.util.Set<io.micrometer.core.instrument.Meter.Id>>meterIdMapprotected ThreadPoolBulkheadMetricNamesnames
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.github.resilience4j.bulkhead.ThreadPoolBulkhead bulkhead)voidbindTo(io.micrometer.core.instrument.MeterRegistry registry)static TaggedThreadPoolBulkheadMetricsofThreadPoolBulkheadRegistry(io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)Creates a new binder that uses givenregistryas source of bulkheads.static TaggedThreadPoolBulkheadMetricsofThreadPoolBulkheadRegistry(io.github.resilience4j.micrometer.tagged.AbstractThreadPoolBulkheadMetrics.MetricNames names, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)Deprecated.static TaggedThreadPoolBulkheadMetricsofThreadPoolBulkheadRegistry(ThreadPoolBulkheadMetricNames names, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)Creates a new binder defining custom metric names and using givenregistryas source of bulkheads.
-
-
-
Field Detail
-
names
protected final ThreadPoolBulkheadMetricNames names
-
meterIdMap
protected java.util.concurrent.ConcurrentMap<java.lang.String,java.util.Set<io.micrometer.core.instrument.Meter.Id>> meterIdMap
-
-
Method Detail
-
ofThreadPoolBulkheadRegistry
public static TaggedThreadPoolBulkheadMetrics ofThreadPoolBulkheadRegistry(io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)
Creates a new binder that uses givenregistryas source of bulkheads.- Parameters:
bulkheadRegistry- the source of bulkheads- Returns:
- The
TaggedThreadPoolBulkheadMetricsinstance.
-
ofThreadPoolBulkheadRegistry
public static TaggedThreadPoolBulkheadMetrics ofThreadPoolBulkheadRegistry(ThreadPoolBulkheadMetricNames names, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)
Creates a new binder defining custom metric names and using givenregistryas source of bulkheads.- Parameters:
names- custom names of the metricsbulkheadRegistry- the source of bulkheads- Returns:
- The
TaggedThreadPoolBulkheadMetricsinstance.
-
ofThreadPoolBulkheadRegistry
@Deprecated public static TaggedThreadPoolBulkheadMetrics ofThreadPoolBulkheadRegistry(io.github.resilience4j.micrometer.tagged.AbstractThreadPoolBulkheadMetrics.MetricNames names, io.github.resilience4j.bulkhead.ThreadPoolBulkheadRegistry bulkheadRegistry)
Deprecated.Creates a new binder defining custom metric names and using givenregistryas source of bulkheads.- Parameters:
names- custom names of the metricsbulkheadRegistry- the source of bulkheads- Returns:
- The
TaggedThreadPoolBulkheadMetricsinstance.
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
- Specified by:
bindToin interfaceio.micrometer.core.instrument.binder.MeterBinder
-
addMetrics
protected void addMetrics(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.github.resilience4j.bulkhead.ThreadPoolBulkhead bulkhead)
-
-