Constructor and Description 

Meter()
Creates a new
Meter . 
Meter(Clock clock)
Creates a new
Meter . 
Modifier and Type  Method and Description 

long 
getCount()
Returns the number of events which have been marked.

double 
getFifteenMinuteRate()
Returns the fifteenminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

double 
getFiveMinuteRate()
Returns the fiveminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

double 
getMeanRate()
Returns the mean rate at which events have occurred since the meter was created.

double 
getOneMinuteRate()
Returns the oneminute exponentiallyweighted moving average rate at which events have
occurred since the meter was created.

void 
mark()
Mark the occurrence of an event.

void 
mark(long n)
Mark the occurrence of a given number of events.

public Meter()
Meter
.public void mark()
public void mark(long n)
n
 the number of eventspublic long getCount()
Metered
public double getFifteenMinuteRate()
Metered
This rate has the same exponential decay factor as the fifteenminute load average in the
top
Unix command.
getFifteenMinuteRate
in interface Metered
public double getFiveMinuteRate()
Metered
This rate has the same exponential decay factor as the fiveminute load average in the top
Unix command.
getFiveMinuteRate
in interface Metered
public double getMeanRate()
Metered
getMeanRate
in interface Metered
public double getOneMinuteRate()
Metered
This rate has the same exponential decay factor as the oneminute load average in the top
Unix command.
getOneMinuteRate
in interface Metered
Copyright © 2017. All Rights Reserved.