类 OccupiableBucketLeapArray
java.lang.Object
com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<MetricBucket>
com.alibaba.csp.sentinel.slots.statistic.metric.occupy.OccupiableBucketLeapArray
- 从以下版本开始:
- 1.5.0
- 作者:
- jialiang.linjl
-
字段概要
从类继承的字段 com.alibaba.csp.sentinel.slots.statistic.base.LeapArray
array, intervalInMs, sampleCount, windowLengthInMs -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddWaiting(long time, int acquireCount) longvoiddebug(long time) newEmptyBucket(long time) Create a new statistic value for bucket.protected WindowWrap<MetricBucket>resetWindowTo(WindowWrap<MetricBucket> w, long time) Reset given bucket to provided start time and reset the value.从类继承的方法 com.alibaba.csp.sentinel.slots.statistic.base.LeapArray
calculateWindowStart, currentWindow, currentWindow, getIntervalInMs, getIntervalInSecond, getPreviousWindow, getPreviousWindow, getSampleCount, getValidHead, getWindowValue, isWindowDeprecated, isWindowDeprecated, list, list, listAll, values, values
-
构造器详细资料
-
OccupiableBucketLeapArray
public OccupiableBucketLeapArray(int sampleCount, int intervalInMs)
-
-
方法详细资料
-
newEmptyBucket
从类复制的说明:LeapArrayCreate a new statistic value for bucket.- 指定者:
newEmptyBucket在类中LeapArray<MetricBucket>- 参数:
time- current time in milliseconds- 返回:
- the new empty bucket
-
resetWindowTo
从类复制的说明:LeapArrayReset given bucket to provided start time and reset the value.- 指定者:
resetWindowTo在类中LeapArray<MetricBucket>- 参数:
w- current buckettime- the start time of the bucket in milliseconds- 返回:
- new clean bucket at given start time
-
currentWaiting
public long currentWaiting()- 覆盖:
currentWaiting在类中LeapArray<MetricBucket>
-
addWaiting
public void addWaiting(long time, int acquireCount) - 覆盖:
addWaiting在类中LeapArray<MetricBucket>
-
debug
public void debug(long time) - 覆盖:
debug在类中LeapArray<MetricBucket>
-