org.LatencyUtils
Class IntervalEstimator
java.lang.Object
org.LatencyUtils.IntervalEstimator
- Direct Known Subclasses:
- MovingAverageIntervalEstimator
public abstract class IntervalEstimator
- extends Object
IntervalEstimator is used to estimate intervals, potentially based on observed intervals recorded in it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntervalEstimator
public IntervalEstimator()
recordInterval
public abstract void recordInterval(long when)
- Record an interval
- Parameters:
when - the end time (in nanoTime units) at which the interval was observed.
getEstimatedInterval
public abstract long getEstimatedInterval(long when)
- Provides the estimated interval
- Parameters:
when - the time (preferably now) at which the estimated interval is requested.
- Returns:
- estimated interval
Copyright © 2014. All rights reserved.