Package org.apache.hadoop.hbase.metrics
Interface Timer
- All Superinterfaces:
Metric
- All Known Implementing Classes:
TimerImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetMeter()
void
Update the timer with the given duration in given time unit.default void
updateMicros
(long durationMicros) Update the timer with the given duration in microsecondsdefault void
updateMillis
(long durationMillis) Update the timer with the given duration in millisecondsdefault void
updateNanos
(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
-