类的使用
com.alibaba.csp.sentinel.slots.statistic.base.WindowWrap
使用WindowWrap的程序包
程序包
说明
-
com.alibaba.csp.sentinel.slots.statistic.base中WindowWrap的使用
修饰符和类型方法说明LeapArray.currentWindow()Get the bucket at current timestamp.LeapArray.currentWindow(long timeMillis) Get bucket item at provided timestamp.LeapArray.getPreviousWindow()Get the previous bucket item for current timestamp.LeapArray.getPreviousWindow(long timeMillis) Get the previous bucket item before provided timestamp.LeapArray.getValidHead()Get the valid "head" bucket of the sliding window at current timestamp.WindowWrap.resetTo(long startTime) Reset start timestamp of current bucket to provided time.protected abstract WindowWrap<T>LeapArray.resetWindowTo(WindowWrap<T> windowWrap, long startTime) Reset given bucket to provided start time and reset the value.protected WindowWrap<LongAdder>UnaryLeapArray.resetWindowTo(WindowWrap<LongAdder> windowWrap, long startTime) 返回变量类型为WindowWrap的类型的com.alibaba.csp.sentinel.slots.statistic.base中的方法修饰符和类型方法说明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.修饰符和类型方法说明booleanLeapArray.isWindowDeprecated(long time, WindowWrap<T> windowWrap) booleanLeapArray.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 abstract WindowWrap<T>LeapArray.resetWindowTo(WindowWrap<T> windowWrap, long startTime) Reset given bucket to provided start time and reset the value.protected WindowWrap<LongAdder>UnaryLeapArray.resetWindowTo(WindowWrap<LongAdder> windowWrap, long startTime) -
com.alibaba.csp.sentinel.slots.statistic.metric中WindowWrap的使用
修饰符和类型方法说明protected WindowWrap<MetricBucket>BucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w, long startTime) 修饰符和类型方法说明protected WindowWrap<MetricBucket>BucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w, long startTime) -
com.alibaba.csp.sentinel.slots.statistic.metric.occupy中WindowWrap的使用
修饰符和类型方法说明protected WindowWrap<MetricBucket>FutureBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w, long startTime) protected WindowWrap<MetricBucket>OccupiableBucketLeapArray.resetWindowTo(WindowWrap<MetricBucket> w, long time) 修饰符和类型方法说明booleanFutureBucketLeapArray.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)