public class FutureBucketLeapArray extends LeapArray<MetricBucket>
BucketLeapArray that only reserves for future buckets.array, intervalInMs, sampleCount, windowLengthInMs| Constructor and Description |
|---|
FutureBucketLeapArray(int sampleCount,
int intervalInMs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWindowDeprecated(long time,
WindowWrap<MetricBucket> windowWrap) |
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, list, list, listAll, values, valuespublic FutureBucketLeapArray(int sampleCount,
int intervalInMs)
public 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 millisecondspublic boolean isWindowDeprecated(long time,
WindowWrap<MetricBucket> windowWrap)
isWindowDeprecated in class LeapArray<MetricBucket>Copyright © 2021 Alibaba Group. All rights reserved.