Class NoopMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
com.linecorp.armeria.common.metric.NoopMeterRegistry
public final class NoopMeterRegistry
extends io.micrometer.core.instrument.MeterRegistry
A
MeterRegistry
which does not record any values.-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
io.micrometer.core.instrument.MeterRegistry.Config, io.micrometer.core.instrument.MeterRegistry.More
-
Field Summary
Fields inherited from class io.micrometer.core.instrument.MeterRegistry
clock
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.micrometer.core.instrument.distribution.DistributionStatisticConfig
static NoopMeterRegistry
get()
Returns the singleton instance.protected TimeUnit
protected io.micrometer.core.instrument.Counter
newCounter
(io.micrometer.core.instrument.Meter.Id id) protected io.micrometer.core.instrument.DistributionSummary
newDistributionSummary
(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionConfig, double scale) protected <T> io.micrometer.core.instrument.FunctionCounter
newFunctionCounter
(io.micrometer.core.instrument.Meter.Id id, T obj, ToDoubleFunction<T> f) protected <T> io.micrometer.core.instrument.FunctionTimer
newFunctionTimer
(io.micrometer.core.instrument.Meter.Id id, T obj, ToLongFunction<T> countFunction, ToDoubleFunction<T> totalTimeFunction, TimeUnit totalTimeFunctionUnits) protected <T> io.micrometer.core.instrument.Gauge
newGauge
(io.micrometer.core.instrument.Meter.Id id, T obj, ToDoubleFunction<T> f) protected io.micrometer.core.instrument.LongTaskTimer
newLongTaskTimer
(io.micrometer.core.instrument.Meter.Id id) protected io.micrometer.core.instrument.Meter
newMeter
(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Meter.Type type, Iterable<io.micrometer.core.instrument.Measurement> measurements) protected io.micrometer.core.instrument.Timer
newTimer
(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig histogramConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector) Methods inherited from class io.micrometer.core.instrument.MeterRegistry
clear, close, config, counter, counter, find, forEachMeter, gauge, gauge, gauge, gauge, gaugeCollectionSize, gaugeMapSize, get, getConventionName, getConventionTags, getMeters, isClosed, meterRegistrationFailed, more, newLongTaskTimer, newTimeGauge, remove, remove, removeByPreFilterId, summary, summary, timer, timer
-
Method Details
-
get
Returns the singleton instance. -
newGauge
protected <T> io.micrometer.core.instrument.Gauge newGauge(io.micrometer.core.instrument.Meter.Id id, @Nullable T obj, ToDoubleFunction<T> f) - Specified by:
newGauge
in classio.micrometer.core.instrument.MeterRegistry
-
newCounter
protected io.micrometer.core.instrument.Counter newCounter(io.micrometer.core.instrument.Meter.Id id) - Specified by:
newCounter
in classio.micrometer.core.instrument.MeterRegistry
-
newLongTaskTimer
protected io.micrometer.core.instrument.LongTaskTimer newLongTaskTimer(io.micrometer.core.instrument.Meter.Id id) - Overrides:
newLongTaskTimer
in classio.micrometer.core.instrument.MeterRegistry
-
newTimer
protected io.micrometer.core.instrument.Timer newTimer(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig histogramConfig, io.micrometer.core.instrument.distribution.pause.PauseDetector pauseDetector) - Specified by:
newTimer
in classio.micrometer.core.instrument.MeterRegistry
-
newDistributionSummary
protected io.micrometer.core.instrument.DistributionSummary newDistributionSummary(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.distribution.DistributionStatisticConfig distributionConfig, double scale) - Specified by:
newDistributionSummary
in classio.micrometer.core.instrument.MeterRegistry
-
newMeter
protected io.micrometer.core.instrument.Meter newMeter(io.micrometer.core.instrument.Meter.Id id, io.micrometer.core.instrument.Meter.Type type, Iterable<io.micrometer.core.instrument.Measurement> measurements) - Specified by:
newMeter
in classio.micrometer.core.instrument.MeterRegistry
-
newFunctionTimer
protected <T> io.micrometer.core.instrument.FunctionTimer newFunctionTimer(io.micrometer.core.instrument.Meter.Id id, T obj, ToLongFunction<T> countFunction, ToDoubleFunction<T> totalTimeFunction, TimeUnit totalTimeFunctionUnits) - Specified by:
newFunctionTimer
in classio.micrometer.core.instrument.MeterRegistry
-
newFunctionCounter
protected <T> io.micrometer.core.instrument.FunctionCounter newFunctionCounter(io.micrometer.core.instrument.Meter.Id id, T obj, ToDoubleFunction<T> f) - Specified by:
newFunctionCounter
in classio.micrometer.core.instrument.MeterRegistry
-
getBaseTimeUnit
- Specified by:
getBaseTimeUnit
in classio.micrometer.core.instrument.MeterRegistry
-
defaultHistogramConfig
protected io.micrometer.core.instrument.distribution.DistributionStatisticConfig defaultHistogramConfig()- Specified by:
defaultHistogramConfig
in classio.micrometer.core.instrument.MeterRegistry
-