org.smallmind.instrument
Class Meter
java.lang.Object
org.smallmind.instrument.Meter
- All Implemented Interfaces:
- Clocked, Countable, Metered, Metric, Stoppable
public class Meter
- extends Object
- implements Metric, Metered, Clocked, Stoppable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Meter
public Meter()
Meter
public Meter(long tickInterval,
TimeUnit tickTimeUnit)
mark
public void mark()
mark
public void mark(long n)
getClock
public Clock getClock()
- Specified by:
getClock in interface Clocked
getRateTimeUnit
public TimeUnit getRateTimeUnit()
- Specified by:
getRateTimeUnit in interface Metered
getCount
public long getCount()
- Specified by:
getCount in interface Countable
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRate in interface Metered
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRate in interface Metered
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRate in interface Metered
getAverageRate
public double getAverageRate()
- Specified by:
getAverageRate in interface Metered
stop
public void stop()
- Specified by:
stop in interface Stoppable
Copyright © 2012. All Rights Reserved.