| Modifier and Type | Interface and Description |
|---|---|
static class |
Timer.Builder
Builder for
Timers. |
| Modifier and Type | Method and Description |
|---|---|
static Timer.Builder |
builder(String name)
Create new builder for
Timer. |
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.
|
default void |
record(Duration duration)
Updates the statistics kept by the counter with the specified amount.
|
void |
record(long amount,
TimeUnit unit)
Updates the statistics kept by the timer with the specified amount.
|
static Timer.Builder builder(String name)
Timer.name - The name of the metric.Timer.void record(long amount,
TimeUnit unit)
amount - Duration of a single event being measured by this timer.unit - Time unit for the amount being recorded.default void record(Duration duration)
duration - Duration of a single event being measured by this timer.long count()
double mean(TimeUnit unit)
unit - The base unit of time to scale the mean to.double max(TimeUnit unit)
unit - The base unit of time to scale the max to.SortedMap<Double,Double> percentileValues(TimeUnit unit)
unit - The base unit of time to scale the percentile value to.Copyright © 2018 WSO2. All rights reserved.