Package org.apache.hadoop.hbase.metrics
Interface Timer
- All Superinterfaces:
Metric
- All Known Implementing Classes:
TimerImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetMeter()voidUpdate the timer with the given duration in given time unit.default voidupdateMicros(long durationMicros) Update the timer with the given duration in microsecondsdefault voidupdateMillis(long durationMillis) Update the timer with the given duration in millisecondsdefault voidupdateNanos(long durationNanos) Update the timer with the given duration in nanoseconds
-
Method Details
-
update
Update the timer with the given duration in given time unit.- Parameters:
duration- the duration of the eventunit- the time unit for the duration
-
updateMillis
Update the timer with the given duration in milliseconds- Parameters:
durationMillis- the duration of the event in ms
-
updateMicros
Update the timer with the given duration in microseconds- Parameters:
durationMicros- the duration of the event in microseconds
-
updateNanos
Update the timer with the given duration in nanoseconds- Parameters:
durationNanos- the duration of the event in ns
-
getHistogram
-
getMeter
-