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(Map<String,Object> result)longgetCount()Get the countHistogramSnapshottakeSnapshot()Take snapshot of timer.voidupdate(long duration, 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.-
Methods inherited from interface org.apache.iotdb.metrics.type.IMetric
setObjectName
-
-
-
-
Method Detail
-
update
void update(long duration, 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(Map<String,Object> result)
- Specified by:
constructValueMapin interfaceIMetric
-
-