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
public class NoopFunctionTimer extends NoopMeter implements FunctionTimer
-
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.Type
-
Constructor Summary
Constructors Constructor Description NoopFunctionTimer(Meter.Id id)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.TimeUnit
baseTimeUnit()
double
count()
double
totalTime(java.util.concurrent.TimeUnit unit)
The total time of all occurrences of the timed event.
-
Constructor Details
-
Method Details
-
count
public double count()- Specified by:
count
in interfaceFunctionTimer
- Returns:
- The total number of occurrences of the timed event.
-
totalTime
public double totalTime(java.util.concurrent.TimeUnit unit)Description copied from interface:FunctionTimer
The total time of all occurrences of the timed event.- Specified by:
totalTime
in 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
public java.util.concurrent.TimeUnit baseTimeUnit()- Specified by:
baseTimeUnit
in interfaceFunctionTimer
- Returns:
- The base time unit of the timer to which all published metrics will be scaled
-