| Package | Description |
|---|---|
| com.alibaba.csp.sentinel.slots.statistic.base | |
| com.alibaba.csp.sentinel.slots.statistic.metric | |
| com.alibaba.csp.sentinel.slots.statistic.metric.occupy |
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReferenceArray<WindowWrap<T>> |
LeapArray.array |
| Modifier and Type | Method and Description |
|---|---|
WindowWrap<T> |
LeapArray.currentWindow()
Get the bucket at current timestamp.
|
WindowWrap<T> |
LeapArray.currentWindow(long timeMillis)
Get bucket item at provided timestamp.
|
WindowWrap<T> |
LeapArray.getPreviousWindow()
Get the previous bucket item for current timestamp.
|
WindowWrap<T> |
LeapArray.getPreviousWindow(long timeMillis)
Get the previous bucket item before provided timestamp.
|
WindowWrap<T> |
LeapArray.getValidHead()
Get the valid "head" bucket of the sliding window at current timestamp.
|
WindowWrap<T> |
WindowWrap.resetTo(long startTime)
Reset start timestamp of current bucket to provided time.
|
protected WindowWrap<LongAdder> |
UnaryLeapArray.resetWindowTo(WindowWrap<LongAdder> windowWrap,
long startTime) |
protected abstract WindowWrap<T> |
LeapArray.resetWindowTo(WindowWrap<T> windowWrap,
long startTime)
Reset given bucket to provided start time and reset the value.
|
| Modifier and Type | Method and Description |
|---|---|
List<WindowWrap<T>> |
LeapArray.list()
Get valid bucket list for entire sliding window.
|
List<WindowWrap<T>> |
LeapArray.list(long validTime) |
List<WindowWrap<T>> |
LeapArray.listAll()
Get all buckets for entire sliding window including deprecated buckets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LeapArray.isWindowDeprecated(long time,
WindowWrap<T> windowWrap) |
boolean |
LeapArray.isWindowDeprecated(WindowWrap<T> windowWrap)
Check if a bucket is deprecated, which means that the bucket
has been behind for at least an entire window time span.
|
protected WindowWrap<LongAdder> |
UnaryLeapArray.resetWindowTo(WindowWrap<LongAdder> windowWrap,
long startTime) |
protected abstract WindowWrap<T> |
LeapArray.resetWindowTo(WindowWrap<T> windowWrap,
long startTime)
Reset given bucket to provided start time and reset the value.
|
| Modifier and Type | Method and Description |
|---|---|
protected WindowWrap<MetricBucket> |
BucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long startTime) |
| Modifier and Type | Method and Description |
|---|---|
protected WindowWrap<MetricBucket> |
BucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long startTime) |
| Modifier and Type | Method and Description |
|---|---|
protected WindowWrap<MetricBucket> |
FutureBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long startTime) |
protected WindowWrap<MetricBucket> |
OccupiableBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long time) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FutureBucketLeapArray.isWindowDeprecated(long time,
WindowWrap<MetricBucket> windowWrap) |
protected WindowWrap<MetricBucket> |
FutureBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long startTime) |
protected WindowWrap<MetricBucket> |
OccupiableBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w,
long time) |
Copyright © 2021 Alibaba Group. All rights reserved.