public class SampleCountProperty extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SAMPLE_COUNT
Statistic buckets count per second.
|
| Constructor and Description |
|---|
SampleCountProperty() |
| Modifier and Type | Method and Description |
|---|---|
static void |
register2Property(SentinelProperty<Integer> property) |
static void |
updateSampleCount(int newSampleCount)
Update the
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.
public static void register2Property(SentinelProperty<Integer> property)
public static void updateSampleCount(int newSampleCount)
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.Copyright © 2019 Alibaba Group. All rights reserved.