public class ChronometerImpl extends MetricImpl<Chronometer> implements Chronometer
| Constructor and Description |
|---|
ChronometerImpl(Samples samples,
TimeUnit durationTimeUnit,
long tickInterval,
TimeUnit tickTimeUnit,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
double |
getAverage() |
double |
getAverageRate() |
Clock |
getClock() |
long |
getCount() |
double |
getFifteenMinuteAvgRate() |
double |
getFiveMinuteAvgRate() |
TimeUnit |
getLatencyTimeUnit() |
double |
getMax() |
Class<Chronometer> |
getMetricClass() |
double |
getMin() |
double |
getOneMinuteAvgRate() |
TimeUnit |
getRateTimeUnit() |
String |
getSampleType() |
Statistics |
getStatistics() |
double |
getStdDev() |
double |
getSum() |
void |
stop() |
void |
update(long duration) |
getMetricSnapshot, getName, setNamepublic Class<Chronometer> getMetricClass()
getMetricClass in interface Metric<Chronometer>public void clear()
clear in interface Metric<Chronometer>public void update(long duration)
update in interface Chronometerpublic String getSampleType()
getSampleType in interface Estimatingpublic TimeUnit getLatencyTimeUnit()
getLatencyTimeUnit in interface Timedpublic TimeUnit getRateTimeUnit()
getRateTimeUnit in interface Meteredpublic double getOneMinuteAvgRate()
getOneMinuteAvgRate in interface Meteredpublic double getFiveMinuteAvgRate()
getFiveMinuteAvgRate in interface Meteredpublic double getFifteenMinuteAvgRate()
getFifteenMinuteAvgRate in interface Meteredpublic double getAverageRate()
getAverageRate in interface Meteredpublic double getMax()
getMax in interface Estimatingpublic double getMin()
getMin in interface Estimatingpublic double getAverage()
getAverage in interface Estimatingpublic double getStdDev()
getStdDev in interface Estimatingpublic double getSum()
getSum in interface Estimatingpublic Statistics getStatistics()
getStatistics in interface StatisticianCopyright © 2015. All rights reserved.