public class ServerFlowConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_EXCEED_COUNT |
static int |
DEFAULT_INTERVAL_MS |
static double |
DEFAULT_MAX_ALLOWED_QPS |
static double |
DEFAULT_MAX_OCCUPY_RATIO |
static int |
DEFAULT_SAMPLE_COUNT |
| Constructor and Description |
|---|
ServerFlowConfig() |
ServerFlowConfig(String namespace) |
| Modifier and Type | Method and Description |
|---|---|
double |
getExceedCount() |
int |
getIntervalMs() |
double |
getMaxAllowedQps() |
double |
getMaxOccupyRatio() |
String |
getNamespace() |
int |
getSampleCount() |
ServerFlowConfig |
setExceedCount(double exceedCount) |
ServerFlowConfig |
setIntervalMs(int intervalMs) |
ServerFlowConfig |
setMaxAllowedQps(double maxAllowedQps) |
ServerFlowConfig |
setMaxOccupyRatio(double maxOccupyRatio) |
ServerFlowConfig |
setSampleCount(int sampleCount) |
String |
toString() |
public static final double DEFAULT_EXCEED_COUNT
public static final double DEFAULT_MAX_OCCUPY_RATIO
public static final int DEFAULT_INTERVAL_MS
public static final int DEFAULT_SAMPLE_COUNT
public static final double DEFAULT_MAX_ALLOWED_QPS
public ServerFlowConfig()
public ServerFlowConfig(String namespace)
public String getNamespace()
public double getExceedCount()
public ServerFlowConfig setExceedCount(double exceedCount)
public double getMaxOccupyRatio()
public ServerFlowConfig setMaxOccupyRatio(double maxOccupyRatio)
public int getIntervalMs()
public ServerFlowConfig setIntervalMs(int intervalMs)
public int getSampleCount()
public ServerFlowConfig setSampleCount(int sampleCount)
public double getMaxAllowedQps()
public ServerFlowConfig setMaxAllowedQps(double maxAllowedQps)
Copyright © 2020 Alibaba Group. All rights reserved.