public class ServiceLimit extends AbstractModel
header, skipSign| Constructor and Description |
|---|
ServiceLimit() |
ServiceLimit(ServiceLimit source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getEnableInstanceReqLimit()
Get Whether to enable the maximum concurrency quantity limit for a single instance.
|
Boolean |
getEnableInstanceRpsLimit()
Get Whether to enable throttling and speed limit at the instance level.
|
Long |
getInstanceReqLimit()
Get Maximum concurrency for each service instance.
|
Long |
getInstanceRpsLimit()
Get Speed limit for the requests per second (RPS) of each service instance.
|
void |
setEnableInstanceReqLimit(Boolean EnableInstanceReqLimit)
Set Whether to enable the maximum concurrency quantity limit for a single instance.
|
void |
setEnableInstanceRpsLimit(Boolean EnableInstanceRpsLimit)
Set Whether to enable throttling and speed limit at the instance level.
|
void |
setInstanceReqLimit(Long InstanceReqLimit)
Set Maximum concurrency for each service instance.
|
void |
setInstanceRpsLimit(Long InstanceRpsLimit)
Set Speed limit for the requests per second (RPS) of each service instance.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ServiceLimit()
public ServiceLimit(ServiceLimit source)
public Boolean getEnableInstanceRpsLimit()
public void setEnableInstanceRpsLimit(Boolean EnableInstanceRpsLimit)
EnableInstanceRpsLimit - Whether to enable throttling and speed limit at the instance level. Valid values: true and false. If the value is true, InstanceRpsLimit is required. If the value is false, InstanceRpsLimit does not take effect.public Long getInstanceRpsLimit()
public void setInstanceRpsLimit(Long InstanceRpsLimit)
InstanceRpsLimit - Speed limit for the requests per second (RPS) of each service instance. 0 indicates no throttling.public Boolean getEnableInstanceReqLimit()
public void setEnableInstanceReqLimit(Boolean EnableInstanceReqLimit)
EnableInstanceReqLimit - Whether to enable the maximum concurrency quantity limit for a single instance. Valid values: true and false. If the value is true, InstanceReqLimit is required. If the value is false, InstanceReqLimit does not take effect.public Long getInstanceReqLimit()
public void setInstanceReqLimit(Long InstanceReqLimit)
InstanceReqLimit - Maximum concurrency for each service instance.Copyright © 2025. All rights reserved.