| Modifier and Type | Field and Description |
|---|---|
| protected AtomicLong | |
| protected final long[] | |
| protected final int | |
| protected final int | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | MovingAverageIntervalEstimator(final int
The requested length of the moving window. May be rounded up to nearest power of 2. requestedWindowLength)
|
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| public long | getEstimatedInterval(long
the time (preferably now) at which the estimated interval is requested. when)Implements abstract org. |
| public void | recordInterval(long
the end time (in nanoTime units) at which the interval was observed. when)Implements abstract org. |
| pack-priv int |
| count | back to summary |
|---|---|
| protected AtomicLong count | |
| intervalEndTimes | back to summary |
|---|---|
| protected final long[] intervalEndTimes | |
| windowLength | back to summary |
|---|---|
| protected final int windowLength | |
| windowMagnitude | back to summary |
|---|---|
| protected final int windowMagnitude | |
| windowMask | back to summary |
|---|---|
| protected final int windowMask | |
| MovingAverageIntervalEstimator | back to summary |
|---|---|
public MovingAverageIntervalEstimator(final int requestedWindowLength)
| |
| getCurrentPosition | back to summary |
|---|---|
| protected int getCurrentPosition() | |
| getEstimatedInterval | back to summary |
|---|---|
| public long getEstimatedInterval(long when) Implements abstract org. Doc from org. Provides the estimated interval
| |
| recordInterval | back to summary |
|---|---|
| public void recordInterval(long when) Implements abstract org. Doc from org. Record an interval
| |
| recordIntervalAndReturnWindowPosition | back to summary |
|---|---|
| pack-priv int recordIntervalAndReturnWindowPosition(long when) | |