类 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
  • 构造器详细资料

    • ClusterMetricLeapArray

      public ClusterMetricLeapArray(int sampleCount, int intervalInMs)
  • 方法详细资料

    • newEmptyBucket

      public ClusterMetricBucket newEmptyBucket(long timeMillis)
      指定者:
      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

      public long getOccupiedCount(ClusterFlowEvent event)
    • getFirstCountOfWindow

      public long getFirstCountOfWindow(ClusterFlowEvent event)