public class CustomMeter
extends java.lang.Object
implements com.codahale.metrics.Metric
| Constructor and Description |
|---|
CustomMeter(com.codahale.metrics.Clock clock,
int periodSec) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
double |
getLastRate() |
double |
getMeanRate() |
void |
mark()
Mark the occurrence of an event.
|
void |
mark(long n)
Mark the occurrence of a given number of events.
|
void |
resetStartTime() |
public void resetStartTime()
public void mark()
public void mark(long n)
n - the number of eventspublic long getCount()
public double getMeanRate()
public double getLastRate()