Constructor and Description |
---|
MeterMetric(ScheduledExecutorService tickThread,
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() |
TimeUnit |
rateUnit() |
void |
stop() |
public MeterMetric(ScheduledExecutorService tickThread, TimeUnit rateUnit)
public 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()
Copyright © 2009–2016. All rights reserved.