Package org.apache.iotdb.metrics.type
Interface Timer
-
- All Superinterfaces:
IMetric
- All Known Implementing Classes:
DoNothingTimer
public interface Timer extends IMetric
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconstructValueMap(java.util.Map<java.lang.String,java.lang.Object> result)RategetImmutableRate()It's not safe to use the update interface of this rateHistogramSnapshottakeSnapshot()Take snapshot of timervoidupdate(long duration, java.util.concurrent.TimeUnit unit)Update time of timerdefault voidupdateMicros(long durationMicros)Update timer by microsecondsdefault voidupdateMillis(long durationMillis)Update timer by milliseconddefault voidupdateNanos(long durationNanos)Update timer by nanoseconds
-
-
-
Method Detail
-
update
void update(long duration, java.util.concurrent.TimeUnit unit)Update time of timer
-
updateMillis
default void updateMillis(long durationMillis)
Update timer by millisecond
-
updateMicros
default void updateMicros(long durationMicros)
Update timer by microseconds
-
updateNanos
default void updateNanos(long durationNanos)
Update timer by nanoseconds
-
takeSnapshot
HistogramSnapshot takeSnapshot()
Take snapshot of timer
-
getImmutableRate
Rate getImmutableRate()
It's not safe to use the update interface of this rate
-
constructValueMap
default void constructValueMap(java.util.Map<java.lang.String,java.lang.Object> result)
- Specified by:
constructValueMapin interfaceIMetric
-
-