类 UnaryLeapArray

java.lang.Object
com.alibaba.csp.sentinel.slots.statistic.base.LeapArray<LongAdder>
com.alibaba.csp.sentinel.slots.statistic.base.UnaryLeapArray

public class UnaryLeapArray extends LeapArray<LongAdder>
作者:
Eric Zhao
  • 构造器详细资料

    • UnaryLeapArray

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

    • newEmptyBucket

      public LongAdder newEmptyBucket(long time)
      从类复制的说明: LeapArray
      Create a new statistic value for bucket.
      指定者:
      newEmptyBucket 在类中 LeapArray<LongAdder>
      参数:
      time - current time in milliseconds
      返回:
      the new empty bucket
    • resetWindowTo

      protected WindowWrap<LongAdder> resetWindowTo(WindowWrap<LongAdder> windowWrap, long startTime)
      从类复制的说明: LeapArray
      Reset given bucket to provided start time and reset the value.
      指定者:
      resetWindowTo 在类中 LeapArray<LongAdder>
      参数:
      windowWrap - current bucket
      startTime - the start time of the bucket in milliseconds
      返回:
      new clean bucket at given start time