类 IntervalProperty

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

public class IntervalProperty extends Object
QPS statistics interval.
作者:
youji.zj, jialiang.linjl, Carpenter Lee, Eric Zhao
  • 字段详细资料

    • INTERVAL

      public static volatile int INTERVAL

      Interval in milliseconds. This variable determines sensitivity of the QPS calculation.

      DO NOT MODIFY this value directly, use updateInterval(int), otherwise the modification will not take effect.

  • 构造器详细资料

    • IntervalProperty

      public IntervalProperty()
  • 方法详细资料

    • register2Property

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

      public static void updateInterval(int newInterval)
      Update the INTERVAL, All ClusterNodes will be reset if newInterval is different from INTERVAL
      参数:
      newInterval - New interval to set.