public class ThrottleBaseInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ThrottleBaseInfo.TimeUnitEnum
流控的时间单位
|
static class |
ThrottleBaseInfo.TypeEnum
流控策略的类型 - 1:基础,表示绑定到流控策略的单个API流控时间内能够被调用多少次。 - 2:共享,表示绑定到流控策略的所有API流控时间内能够被调用多少次。
|
| Constructor and Description |
|---|
ThrottleBaseInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getApiCallLimits()
API流量限制是指时长内一个API能够被访问的次数上限。该值不超过系统默认配额限制,系统默认配额为200tps,用户可根据实际情况修改该系统默认配额。输入的值不超过2147483647。正整数。
|
Integer |
getAppCallLimits()
APP流量限制是指一个API在时长之内被每个APP访问的次数上限,该数值不超过用户流量限制值。输入的值不超过2147483647。正整数。
|
String |
getEnableAdaptiveControl()
是否开启动态流控: - TRUE - FALSE 暂不支持
|
Integer |
getIpCallLimits()
源IP流量限制是指一个API在时长之内被每个IP访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
|
String |
getName()
流控策略名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。 > 中文字符必须为UTF-8或者unicode编码。
|
String |
getRemark()
流控策略描述字符长度不超过255。 > 中文字符必须为UTF-8或者unicode编码。
|
Integer |
getTimeInterval()
流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
|
ThrottleBaseInfo.TimeUnitEnum |
getTimeUnit()
流控的时间单位
|
ThrottleBaseInfo.TypeEnum |
getType()
流控策略的类型 - 1:基础,表示绑定到流控策略的单个API流控时间内能够被调用多少次。 - 2:共享,表示绑定到流控策略的所有API流控时间内能够被调用多少次。
|
Integer |
getUserCallLimits()
[用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws;hws_hk;hcs;fcs;g42;)[site不支持用户流量限制,输入值为0](tag:Site)
|
int |
hashCode() |
void |
setApiCallLimits(Integer apiCallLimits) |
void |
setAppCallLimits(Integer appCallLimits) |
void |
setEnableAdaptiveControl(String enableAdaptiveControl) |
void |
setIpCallLimits(Integer ipCallLimits) |
void |
setName(String name) |
void |
setRemark(String remark) |
void |
setTimeInterval(Integer timeInterval) |
void |
setTimeUnit(ThrottleBaseInfo.TimeUnitEnum timeUnit) |
void |
setType(ThrottleBaseInfo.TypeEnum type) |
void |
setUserCallLimits(Integer userCallLimits) |
String |
toString() |
ThrottleBaseInfo |
withApiCallLimits(Integer apiCallLimits) |
ThrottleBaseInfo |
withAppCallLimits(Integer appCallLimits) |
ThrottleBaseInfo |
withEnableAdaptiveControl(String enableAdaptiveControl) |
ThrottleBaseInfo |
withIpCallLimits(Integer ipCallLimits) |
ThrottleBaseInfo |
withName(String name) |
ThrottleBaseInfo |
withRemark(String remark) |
ThrottleBaseInfo |
withTimeInterval(Integer timeInterval) |
ThrottleBaseInfo |
withTimeUnit(ThrottleBaseInfo.TimeUnitEnum timeUnit) |
ThrottleBaseInfo |
withType(ThrottleBaseInfo.TypeEnum type) |
ThrottleBaseInfo |
withUserCallLimits(Integer userCallLimits) |
public ThrottleBaseInfo withAppCallLimits(Integer appCallLimits)
public Integer getAppCallLimits()
public void setAppCallLimits(Integer appCallLimits)
public ThrottleBaseInfo withName(String name)
public String getName()
public void setName(String name)
public ThrottleBaseInfo withTimeUnit(ThrottleBaseInfo.TimeUnitEnum timeUnit)
public ThrottleBaseInfo.TimeUnitEnum getTimeUnit()
public void setTimeUnit(ThrottleBaseInfo.TimeUnitEnum timeUnit)
public ThrottleBaseInfo withRemark(String remark)
public String getRemark()
public void setRemark(String remark)
public ThrottleBaseInfo withApiCallLimits(Integer apiCallLimits)
public Integer getApiCallLimits()
public void setApiCallLimits(Integer apiCallLimits)
public ThrottleBaseInfo withType(ThrottleBaseInfo.TypeEnum type)
public ThrottleBaseInfo.TypeEnum getType()
public void setType(ThrottleBaseInfo.TypeEnum type)
public ThrottleBaseInfo withEnableAdaptiveControl(String enableAdaptiveControl)
public String getEnableAdaptiveControl()
public void setEnableAdaptiveControl(String enableAdaptiveControl)
public ThrottleBaseInfo withUserCallLimits(Integer userCallLimits)
public Integer getUserCallLimits()
public void setUserCallLimits(Integer userCallLimits)
public ThrottleBaseInfo withTimeInterval(Integer timeInterval)
public Integer getTimeInterval()
public void setTimeInterval(Integer timeInterval)
public ThrottleBaseInfo withIpCallLimits(Integer ipCallLimits)
public Integer getIpCallLimits()
public void setIpCallLimits(Integer ipCallLimits)
Copyright © 2022. All rights reserved.