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)longgetCount()Get the countHistogramSnapshottakeSnapshot()Take snapshot of timer.voidupdate(long duration, java.util.concurrent.TimeUnit unit)Update time of timer.default voidupdateMicros(long durationMicros)Update timer by microseconds.default voidupdateMillis(long durationMillis)Update timer by millisecond.default 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.
-
getCount
long getCount()
Get the count
-
constructValueMap
default void constructValueMap(java.util.Map<java.lang.String,java.lang.Object> result)
- Specified by:
constructValueMapin interfaceIMetric
-
-