Class NoopFunctionTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.noop.NoopMeter
io.micrometer.core.instrument.noop.NoopFunctionTimer
- All Implemented Interfaces:
FunctionTimer,Meter
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.FunctionTimer
FunctionTimer.Builder<T>Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecount()doubleThe total time of all occurrences of the timed event.Methods inherited from class io.micrometer.core.instrument.AbstractMeter
equals, getId, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.core.instrument.FunctionTimer
mean, measure
-
Constructor Details
-
NoopFunctionTimer
-
-
Method Details
-
count
public double count()- Specified by:
countin interfaceFunctionTimer- Returns:
- The total number of occurrences of the timed event.
-
totalTime
Description copied from interface:FunctionTimerThe total time of all occurrences of the timed event.- Specified by:
totalTimein interfaceFunctionTimer- Parameters:
unit- The base unit of time to scale the total to.- Returns:
- The total time of all occurrences of the timed event.
-
baseTimeUnit
- Specified by:
baseTimeUnitin interfaceFunctionTimer- Returns:
- The base time unit of the timer to which all published metrics will be scaled
-