Package org.apache.iotdb.metrics.impl
Class DoNothingTimer
- java.lang.Object
-
- org.apache.iotdb.metrics.impl.DoNothingTimer
-
- All Implemented Interfaces:
DoNothingMetric,IMetric,Timer
public class DoNothingTimer extends java.lang.Object implements Timer, DoNothingMetric
-
-
Constructor Summary
Constructors Constructor Description DoNothingTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 timer-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.metrics.type.Timer
constructValueMap, updateMicros, updateMillis, updateNanos
-
-
-
-
Method Detail
-
update
public void update(long duration, java.util.concurrent.TimeUnit unit)Description copied from interface:TimerUpdate time of timer
-
takeSnapshot
public HistogramSnapshot takeSnapshot()
Description copied from interface:TimerTake snapshot of timer- Specified by:
takeSnapshotin interfaceTimer
-
getImmutableRate
public Rate getImmutableRate()
Description copied from interface:TimerIt's not safe to use the update interface of this rate- Specified by:
getImmutableRatein interfaceTimer
-
-