# Functions
New AtomicBucketWrapArray with initializing field data Default, automatically initialize each BucketWrap len: length of array bucketLengthInMs: bucket length of BucketWrap generator: generator to generate bucket.
No description provided by the author
sampleCount is the number of slots intervalInMs is the time length of sliding window.
No description provided by the author
No description provided by the author
It must pass the parameter point to the real storage entity.
# Constants
No description provided by the author
# Structs
atomic BucketWrap array to resolve race condition AtomicBucketWrapArray can not append or delete element after initializing.
The implementation of sliding window based on LeapArray (as the sliding window infrastructure) and MetricBucket (as the data type).
BucketWrap represent a slot to record metrics In order to reduce the usage of memory, BucketWrap don't hold length of BucketWrap The length of BucketWrap could be seen in LeapArray.
The BucketWrap leap array, sampleCount represent the number of BucketWrap intervalInMs represent the interval of LeapArray.
MetricBucket represents the entity to record metrics per minimum time unit (i.e.
SlidingWindowMetric represents the sliding window metric wrapper.
# Interfaces
Generic interface to generate bucket.