public class CompositeTimer extends AbstractTimer implements CompositeMeter
Meter.Id, Meter.TypeTimer.Builderclock| Modifier and Type | Method and Description |
|---|---|
void |
add(MeterRegistry registry) |
long |
count()
The number of times that record has been called since this timer was created.
|
void |
record(long amount,
java.util.concurrent.TimeUnit unit)
Updates the statistics kept by the counter with the specified amount.
|
void |
remove(MeterRegistry registry) |
double |
totalTime(java.util.concurrent.TimeUnit unit)
The total time of all recorded events since this timer was created.
|
equals, hashCode, record, record, recordCallable, wrapgetIdpublic void record(long amount,
java.util.concurrent.TimeUnit unit)
Timerpublic long count()
Timerpublic double totalTime(java.util.concurrent.TimeUnit unit)
Timerpublic void add(MeterRegistry registry)
add in interface CompositeMeterpublic void remove(MeterRegistry registry)
remove in interface CompositeMeter