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) |
double |
percentile(double percentile,
TimeUnit unit) |
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 double percentile(double percentile,
TimeUnit unit)
percentile in interface Timerpercentile - A percentile in the domain [0, 1]. For example, 0.5 represents the 50th percentile of the
distribution.unit - The base unit of time to scale the percentile value to.Copyright © 2018 WSO2. All rights reserved.