public class NoOpTimer extends AbstractMetric implements Timer
Timer.Timer.Builder| Modifier and Type | Method and Description |
|---|---|
long |
count() |
double |
max(TimeUnit unit) |
double |
mean(TimeUnit unit) |
SortedMap<Double,Double> |
percentileValues(TimeUnit unit)
Return a sorted map of latencies at specific percentiles.
|
void |
record(long amount,
TimeUnit unit)
Updates the statistics kept by the timer with the specified amount.
|
equals, getId, hashCodepublic NoOpTimer(MetricId id)
public void record(long amount,
TimeUnit unit)
Timerpublic long count()
public double mean(TimeUnit unit)
public double max(TimeUnit unit)
public SortedMap<Double,Double> percentileValues(TimeUnit unit)
TimerpercentileValues in interface Timerunit - The base unit of time to scale the percentile value to.Copyright © 2018 WSO2. All rights reserved.