类 SampleCountProperty

java.lang.Object
com.alibaba.csp.sentinel.node.SampleCountProperty

public class SampleCountProperty extends Object
Holds statistic buckets count per second.
作者:
jialiang.linjl, CarpenterLee
  • 字段详细资料

    • SAMPLE_COUNT

      public static volatile int SAMPLE_COUNT

      Statistic buckets count per second. This variable determines sensitivity of the QPS calculation. DO NOT MODIFY this value directly, use updateSampleCount(int), otherwise the modification will not take effect.

      Node that this value must be divisor of 1000.
  • 构造器详细资料

    • SampleCountProperty

      public SampleCountProperty()
  • 方法详细资料

    • register2Property

      public static void register2Property(SentinelProperty<Integer> property)
    • updateSampleCount

      public static void updateSampleCount(int newSampleCount)
      Update the SAMPLE_COUNT. All ClusterNodes will be reset if newSampleCount is different from SAMPLE_COUNT.
      参数:
      newSampleCount - New sample count to set. This value must be divisor of 1000.