array, intervalInMs, sampleCount, windowLengthInMs| Constructor and Description |
|---|
UnaryLeapArray(int sampleCount,
int intervalInMs) |
| Modifier and Type | Method and Description |
|---|---|
LongAdder |
newEmptyBucket(long time)
Create a new statistic value for bucket.
|
protected WindowWrap<LongAdder> |
resetWindowTo(WindowWrap<LongAdder> windowWrap,
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 LongAdder newEmptyBucket(long time)
LeapArraynewEmptyBucket in class LeapArray<LongAdder>time - current time in millisecondsprotected WindowWrap<LongAdder> resetWindowTo(WindowWrap<LongAdder> windowWrap, long startTime)
LeapArrayresetWindowTo in class LeapArray<LongAdder>windowWrap - current bucketstartTime - the start time of the bucket in millisecondsCopyright © 2021 Alibaba Group. All rights reserved.