Top Description Constructors Methods
org.LatencyUtils

public abstract Class IntervalEstimator

extends Object
Class Inheritance
Known Direct Subclasses
org.LatencyUtils.MovingAverageIntervalEstimator

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract long

Returns:

estimated interval
getEstimatedInterval
(long
the time (preferably now) at which the estimated interval is requested.
when
)

Provides the estimated interval

public abstract void
recordInterval(long
the end time (in nanoTime units) at which the interval was observed.
when
)

Record an interval

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IntervalEstimatorback to summary
public IntervalEstimator()

Method Detail

getEstimatedIntervalback to summary
public abstract long getEstimatedInterval(long when)

Provides the estimated interval

Parameters
when:long

the time (preferably now) at which the estimated interval is requested.

Returns:long

estimated interval

recordIntervalback to summary
public abstract void recordInterval(long when)

Record an interval

Parameters
when:long

the end time (in nanoTime units) at which the interval was observed.