public class MeterMetric extends java.lang.Object implements Metric
taken from codahale metric module, replaced with LongAdder
Constructor and Description |
---|
MeterMetric(java.util.concurrent.ScheduledExecutorService tickThread,
java.util.concurrent.TimeUnit rateUnit) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
double |
fifteenMinuteRate() |
double |
fiveMinuteRate() |
void |
mark()
Mark the occurrence of an event.
|
void |
mark(long n)
Mark the occurrence of a given number of events.
|
double |
meanRate() |
double |
oneMinuteRate() |
java.util.concurrent.TimeUnit |
rateUnit() |
void |
stop() |
public MeterMetric(java.util.concurrent.ScheduledExecutorService tickThread, java.util.concurrent.TimeUnit rateUnit)
public java.util.concurrent.TimeUnit rateUnit()
public void mark()
public void mark(long n)
n
- the number of eventspublic long count()
public double fifteenMinuteRate()
public double fiveMinuteRate()
public double meanRate()
public double oneMinuteRate()
public void stop()