public class AutoStrategy extends AbstractModel
header, skipSign
Constructor and Description |
---|
AutoStrategy() |
AutoStrategy(AutoStrategy 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 |
---|---|
Long |
getExpandPeriod()
Get 自动扩容观测周期,单位是分钟,可选值1、3、5、10、15、30。后台会按照配置的周期进行扩容判断。
|
Long |
getExpandThreshold()
Get 自动扩容阈值,可选值70、80、90,代表CPU利用率达到70%、80%、90%时后台进行自动扩容
|
Long |
getShrinkPeriod()
Get 自动缩容观测周期,单位是分钟,可选值5、10、15、30。后台会按照配置的周期进行缩容判断。
|
Long |
getShrinkThreshold()
Get 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容
|
void |
setExpandPeriod(Long ExpandPeriod)
Set 自动扩容观测周期,单位是分钟,可选值1、3、5、10、15、30。后台会按照配置的周期进行扩容判断。
|
void |
setExpandThreshold(Long ExpandThreshold)
Set 自动扩容阈值,可选值70、80、90,代表CPU利用率达到70%、80%、90%时后台进行自动扩容
|
void |
setShrinkPeriod(Long ShrinkPeriod)
Set 自动缩容观测周期,单位是分钟,可选值5、10、15、30。后台会按照配置的周期进行缩容判断。
|
void |
setShrinkThreshold(Long ShrinkThreshold)
Set 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容
|
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, toJsonString
public AutoStrategy()
public AutoStrategy(AutoStrategy source)
public Long getExpandThreshold()
public void setExpandThreshold(Long ExpandThreshold)
ExpandThreshold
- 自动扩容阈值,可选值70、80、90,代表CPU利用率达到70%、80%、90%时后台进行自动扩容public Long getExpandPeriod()
public void setExpandPeriod(Long ExpandPeriod)
ExpandPeriod
- 自动扩容观测周期,单位是分钟,可选值1、3、5、10、15、30。后台会按照配置的周期进行扩容判断。public Long getShrinkThreshold()
public void setShrinkThreshold(Long ShrinkThreshold)
ShrinkThreshold
- 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容public Long getShrinkPeriod()
public void setShrinkPeriod(Long ShrinkPeriod)
ShrinkPeriod
- 自动缩容观测周期,单位是分钟,可选值5、10、15、30。后台会按照配置的周期进行缩容判断。Copyright © 2025. All rights reserved.