类 UnaryLeapArray
java.lang.Object
com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<LongAdder>
com.alibaba.csp.sentinel.slots.statistic.base.UnaryLeapArray
- 作者:
- Eric Zhao
-
字段概要
从类继承的字段 com.alibaba.csp.sentinel.slots.statistic.base.LeapArray
array, intervalInMs, sampleCount, windowLengthInMs -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.从类继承的方法 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
-
构造器详细资料
-
UnaryLeapArray
public UnaryLeapArray(int sampleCount, int intervalInMs)
-
-
方法详细资料
-
newEmptyBucket
从类复制的说明:LeapArrayCreate a new statistic value for bucket.- 指定者:
newEmptyBucket在类中LeapArray<LongAdder>- 参数:
time- current time in milliseconds- 返回:
- the new empty bucket
-
resetWindowTo
从类复制的说明:LeapArrayReset given bucket to provided start time and reset the value.- 指定者:
resetWindowTo在类中LeapArray<LongAdder>- 参数:
windowWrap- current bucketstartTime- the start time of the bucket in milliseconds- 返回:
- new clean bucket at given start time
-