public class BucketLeapArray extends LeapArray<MetricBucket>
LeapArrayarray, intervalInMs, sampleCount, windowLengthInMs| Constructor and Description |
|---|
BucketLeapArray(int sampleCount,
int intervalInMs) |
| Modifier and Type | Method and Description |
|---|---|
MetricBucket |
newEmptyBucket(long time)
Create a new statistic value for bucket.
|
protected WindowWrap<MetricBucket> |
resetWindowTo(WindowWrap<MetricBucket> w,
long startTime)
Reset given bucket to provided start time and reset the value.
|
addWaiting, calculateWindowStart, currentWaiting, currentWindow, currentWindow, debug, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, valuespublic MetricBucket newEmptyBucket(long time)
LeapArraynewEmptyBucket in class LeapArray<MetricBucket>time - current time in millisecondsprotected WindowWrap<MetricBucket> resetWindowTo(WindowWrap<MetricBucket> w, long startTime)
LeapArrayresetWindowTo in class LeapArray<MetricBucket>w - current bucketstartTime - the start time of the bucket in millisecondsCopyright © 2021 Alibaba Group. All rights reserved.