org.LatencyUtils
Class IntervalEstimator

java.lang.Object
  extended by org.LatencyUtils.IntervalEstimator
Direct Known Subclasses:
MovingAverageIntervalEstimator

public abstract class IntervalEstimator
extends java.lang.Object

IntervalEstimator is used to estimate intervals, potentially based on observed intervals recorded in it.


Constructor Summary
IntervalEstimator()
           
 
Method Summary
abstract  long getEstimatedInterval(long when)
          Provides the estimated interval
abstract  void recordInterval(long when)
          Record an interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalEstimator

public IntervalEstimator()
Method Detail

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