public class CumulativeTimer extends AbstractTimer
Timer.Builder
Meter.Id, Meter.Type
clock, histogram
Constructor and Description |
---|
CumulativeTimer(Meter.Id id,
Clock clock,
HistogramConfig histogramConfig)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
count()
The number of times that record has been called on this timer.
|
double |
max(java.util.concurrent.TimeUnit unit)
The maximum time of a single event.
|
java.lang.Iterable<Measurement> |
measure()
Get a set of measurements.
|
protected void |
recordNonNegative(long amount,
java.util.concurrent.TimeUnit unit) |
double |
totalTime(java.util.concurrent.TimeUnit unit)
The total time of recorded events.
|
equals, hashCode, histogramCountAtValue, percentile, record, record, record, recordCallable, statsConfig, takeSnapshot
getId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public CumulativeTimer(Meter.Id id, Clock clock, HistogramConfig histogramConfig)
protected void recordNonNegative(long amount, java.util.concurrent.TimeUnit unit)
recordNonNegative
in class AbstractTimer
public long count()
Timer
public double totalTime(java.util.concurrent.TimeUnit unit)
Timer
public double max(java.util.concurrent.TimeUnit unit)
Timer
public java.lang.Iterable<Measurement> measure()
Meter