Class NoopMeterRegistry
java.lang.Object
io.micrometer.core.instrument.MeterRegistry
com.linecorp.armeria.common.metric.NoopMeterRegistry
public final class NoopMeterRegistry extends MeterRegistry
A
MeterRegistry
which does not record any values.-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.core.instrument.MeterRegistry
MeterRegistry.Config, MeterRegistry.More
-
Field Summary
-
Method Summary
Modifier and Type Method Description protected DistributionStatisticConfig
defaultHistogramConfig()
static NoopMeterRegistry
get()
Returns the singleton instance.protected TimeUnit
getBaseTimeUnit()
protected Counter
newCounter(Meter.Id id)
protected DistributionSummary
newDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionConfig, double scale)
protected <T> FunctionCounter
newFunctionCounter(Meter.Id id, T obj, ToDoubleFunction<T> f)
protected <T> FunctionTimer
newFunctionTimer(Meter.Id id, T obj, ToLongFunction<T> countFunction, ToDoubleFunction<T> totalTimeFunction, TimeUnit totalTimeFunctionUnits)
protected <T> Gauge
newGauge(Meter.Id id, T obj, ToDoubleFunction<T> f)
protected LongTaskTimer
newLongTaskTimer(Meter.Id id)
protected Meter
newMeter(Meter.Id id, Meter.Type type, Iterable<Measurement> measurements)
protected Timer
newTimer(Meter.Id id, DistributionStatisticConfig histogramConfig, 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, more, newLongTaskTimer, newTimeGauge, remove, remove, summary, summary, timer, timer
-
Method Details
-
get
Returns the singleton instance. -
newGauge
- Specified by:
newGauge
in classMeterRegistry
-
newCounter
- Specified by:
newCounter
in classMeterRegistry
-
newLongTaskTimer
- Overrides:
newLongTaskTimer
in classMeterRegistry
-
newTimer
protected Timer newTimer(Meter.Id id, DistributionStatisticConfig histogramConfig, PauseDetector pauseDetector)- Specified by:
newTimer
in classMeterRegistry
-
newDistributionSummary
protected DistributionSummary newDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionConfig, double scale)- Specified by:
newDistributionSummary
in classMeterRegistry
-
newMeter
- Specified by:
newMeter
in classMeterRegistry
-
newFunctionTimer
protected <T> FunctionTimer newFunctionTimer(Meter.Id id, T obj, ToLongFunction<T> countFunction, ToDoubleFunction<T> totalTimeFunction, TimeUnit totalTimeFunctionUnits)- Specified by:
newFunctionTimer
in classMeterRegistry
-
newFunctionCounter
- Specified by:
newFunctionCounter
in classMeterRegistry
-
getBaseTimeUnit
- Specified by:
getBaseTimeUnit
in classMeterRegistry
-
defaultHistogramConfig
- Specified by:
defaultHistogramConfig
in classMeterRegistry
-