Class NoopTimer
java.lang.Object
io.micrometer.core.instrument.AbstractMeter
io.micrometer.core.instrument.noop.NoopMeter
io.micrometer.core.instrument.noop.NoopTimer
- All Implemented Interfaces:
HistogramSupport,Meter,Timer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.MeterProvider<T extends Meter>, Meter.TypeNested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer
Timer.Builder, Timer.ResourceSample, Timer.Sample -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcount()doublevoidUpdates the statistics kept by the timer with the specified amount.voidExecutes the runnablefand records the time taken.booleanExecutes the Supplierfand records the time taken.doubleExecutes the Supplierfand records the time taken.intExecutes the Supplierfand records the time taken.longExecutes the Supplierfand records the time taken.<T> TExecutes the Supplierfand records the time taken.<T> TrecordCallable(Callable<T> f) Executes the callablefand records the time taken.Summary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.doubleMethods 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.distribution.HistogramSupport
takeSnapshotMethods inherited from interface io.micrometer.core.instrument.Timer
histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
-
Constructor Details
-
NoopTimer
-
-
Method Details
-
record
Description copied from interface:TimerUpdates the statistics kept by the timer with the specified amount. -
record
Description copied from interface:TimerExecutes the Supplierfand records the time taken. -
record
Description copied from interface:TimerExecutes the Supplierfand records the time taken. -
record
Description copied from interface:TimerExecutes the Supplierfand records the time taken. -
record
Description copied from interface:TimerExecutes the Supplierfand records the time taken. -
record
Description copied from interface:TimerExecutes the Supplierfand records the time taken. -
recordCallable
Description copied from interface:TimerExecutes the callablefand records the time taken.- Specified by:
recordCallablein interfaceTimer- Type Parameters:
T- The return type of theCallable.- Parameters:
f- Function to execute and measure the execution time.- Returns:
- The return value of
f. - Throws:
Exception- Any exception bubbling up from the callable.
-
record
Description copied from interface:TimerExecutes the runnablefand records the time taken. -
count
public long count() -
totalTime
-
max
-
baseTimeUnit
- Specified by:
baseTimeUnitin interfaceTimer- Returns:
- The base time unit of the timer to which all published metrics will be scaled
-
takeSnapshot
Description copied from interface:HistogramSupportSummary statistics should be published off of a single snapshot instance so that, for example, there isn't disagreement between the distribution's bucket counts because more events continue to stream in.- Specified by:
takeSnapshotin interfaceHistogramSupport- Returns:
- A snapshot of all distribution statistics at a point in time.
-