Module datarush.commons
Class AbstractIntervalTimerSupplier
java.lang.Object
com.pervasive.datarush.monitoring.AbstractIntervalTimerSupplier
- All Implemented Interfaces:
IntervalTimerSupplier,StatisticSupplier
- Direct Known Subclasses:
IntervalTimer,IntervalTimerSnapshot
Convenient base class that should be extended by all implementations of
IntervalTimerSupplier-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal longIf state isStatisticState.ACTIVEorStatisticState.FINISHEDshould always returngetEndTimeMillis()-getStartTimeMillis.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pervasive.datarush.monitoring.IntervalTimerSupplier
getEndTimeMillis, getStartTimeMillis, snapshotMethods inherited from interface com.pervasive.datarush.monitoring.StatisticSupplier
getState
-
Constructor Details
-
AbstractIntervalTimerSupplier
public AbstractIntervalTimerSupplier()
-
-
Method Details
-
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
-