protected static class PerformanceStatistics.AveragingQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PerformanceStatistics.AveragingRecord[] |
records
The internal structure of the averaging queue is a circular buffer, which gets initialized to the default value
|
protected int |
startIndex
This is the current start pointer
|
Constructor and Description |
---|
AveragingQueue()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord(int setSize,
long elapsedTime)
Add a record
|
double |
calculateFetchRate()
Calculate running-average fetch rate
|
protected PerformanceStatistics.AveragingRecord[] records
protected int startIndex