类 SampleCountProperty
java.lang.Object
com.alibaba.csp.sentinel.node.SampleCountProperty
Holds statistic buckets count per second.
- 作者:
- jialiang.linjl, CarpenterLee
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidregister2Property(SentinelProperty<Integer> property) static voidupdateSampleCount(int newSampleCount) Update theSAMPLE_COUNT.
-
字段详细资料
-
SAMPLE_COUNT
public static volatile int SAMPLE_COUNTStatistic buckets count per second. This variable determines sensitivity of the QPS calculation. DO NOT MODIFY this value directly, use
Node that this value must be divisor of 1000.updateSampleCount(int), otherwise the modification will not take effect.
-
-
构造器详细资料
-
SampleCountProperty
public SampleCountProperty()
-
-
方法详细资料
-
register2Property
-
updateSampleCount
public static void updateSampleCount(int newSampleCount) Update theSAMPLE_COUNT. AllClusterNodes will be reset if newSampleCount is different fromSAMPLE_COUNT.- 参数:
newSampleCount- New sample count to set. This value must be divisor of 1000.
-