public class CompositeTimer extends AbstractTimer implements CompositeMeter
Meter.Id, Meter.Type
Timer.Builder
clock
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, wrap
getId
public void record(long amount, java.util.concurrent.TimeUnit unit)
Timer
public long count()
Timer
public double totalTime(java.util.concurrent.TimeUnit unit)
Timer
public void add(MeterRegistry registry)
add
in interface CompositeMeter
public void remove(MeterRegistry registry)
remove
in interface CompositeMeter