类 ClusterMetricLeapArray
java.lang.Object
com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<ClusterMetricBucket>
com.alibaba.csp.sentinel.cluster.flow.statistic.metric.ClusterMetricLeapArray
public class ClusterMetricLeapArray
extends com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<ClusterMetricBucket>
- 从以下版本开始:
- 1.4.0
- 作者:
- Eric Zhao
-
字段概要
从类继承的字段 com.alibaba.csp.sentinel.slots.statistic.base.LeapArray
array, intervalInMs, sampleCount, windowLengthInMs -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddOccupyPass(int count) longlonggetOccupiedCount(ClusterFlowEvent event) newEmptyBucket(long timeMillis) protected com.alibaba.csp.sentinel.slots.statistic.base.WindowWrap<ClusterMetricBucket>resetWindowTo(com.alibaba.csp.sentinel.slots.statistic.base.WindowWrap<ClusterMetricBucket> w, long startTime) 从类继承的方法 com.alibaba.csp.sentinel.slots.statistic.base.LeapArray
addWaiting, calculateWindowStart, currentWaiting, currentWindow, currentWindow, debug, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, values
-
构造器详细资料
-
ClusterMetricLeapArray
public ClusterMetricLeapArray(int sampleCount, int intervalInMs)
-
-
方法详细资料
-
newEmptyBucket
- 指定者:
newEmptyBucket在类中com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<ClusterMetricBucket>
-
resetWindowTo
protected com.alibaba.csp.sentinel.slots.statistic.base.WindowWrap<ClusterMetricBucket> resetWindowTo(com.alibaba.csp.sentinel.slots.statistic.base.WindowWrap<ClusterMetricBucket> w, long startTime) - 指定者:
resetWindowTo在类中com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<ClusterMetricBucket>
-
addOccupyPass
public void addOccupyPass(int count) -
getOccupiedCount
-
getFirstCountOfWindow
-