Module datarush.commons
Class AbstractIntervalTimerSupplier
- java.lang.Object
-
- com.pervasive.datarush.monitoring.AbstractIntervalTimerSupplier
-
- All Implemented Interfaces:
IntervalTimerSupplier,StatisticSupplier
- Direct Known Subclasses:
IntervalTimer,IntervalTimerSnapshot
public abstract class AbstractIntervalTimerSupplier extends Object implements IntervalTimerSupplier
Convenient base class that should be extended by all implementations ofIntervalTimerSupplier
-
-
Constructor Summary
Constructors Constructor Description AbstractIntervalTimerSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTimeIntervalMillis()If state isStatisticState.ACTIVEorStatisticState.FINISHEDshould always returngetEndTimeMillis()-getStartTimeMillis.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.pervasive.datarush.monitoring.IntervalTimerSupplier
getEndTimeMillis, getStartTimeMillis, snapshot
-
Methods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
-
-
-
Method Detail
-
getTimeIntervalMillis
public final long getTimeIntervalMillis()
Description copied from interface:IntervalTimerSupplierIf state isStatisticState.ACTIVEorStatisticState.FINISHEDshould always returngetEndTimeMillis()-getStartTimeMillis. Otherwise, value is undefined.- Specified by:
getTimeIntervalMillisin interfaceIntervalTimerSupplier- Returns:
- the difference between end time and start time
-
-