Class DropwizardTimer
- java.lang.Object
-
- io.micrometer.core.instrument.AbstractMeter
-
- io.micrometer.core.instrument.AbstractTimer
-
- io.micrometer.core.instrument.dropwizard.DropwizardTimer
-
- All Implemented Interfaces:
HistogramSupport
,Meter
,Timer
public class DropwizardTimer extends AbstractTimer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.Type
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer
Timer.Builder, Timer.Sample
-
-
Field Summary
-
Fields inherited from class io.micrometer.core.instrument.AbstractTimer
clock, histogram
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count()
double
max(java.util.concurrent.TimeUnit unit)
protected void
recordNonNegative(long amount, java.util.concurrent.TimeUnit unit)
double
totalTime(java.util.concurrent.TimeUnit unit)
-
Methods inherited from class io.micrometer.core.instrument.AbstractTimer
baseTimeUnit, close, equals, hashCode, record, record, record, recordCallable, takeSnapshot
-
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
getId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport
takeSnapshot
-
Methods inherited from interface io.micrometer.core.instrument.Timer
histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
-
-
-
-
Method Detail
-
recordNonNegative
protected void recordNonNegative(long amount, java.util.concurrent.TimeUnit unit)
- Specified by:
recordNonNegative
in classAbstractTimer
-
count
public long count()
- Returns:
- The number of times that stop has been called on this timer.
-
totalTime
public double totalTime(java.util.concurrent.TimeUnit unit)
- Parameters:
unit
- The base unit of time to scale the total to.- Returns:
- The total time of recorded events.
-
max
public double max(java.util.concurrent.TimeUnit unit)
- Parameters:
unit
- The base unit of time to scale the max to.- Returns:
- The maximum time of a single event.
-
-