public class MainAddressPool extends AbstractModel
header, skipSign
Constructor and Description |
---|
MainAddressPool() |
MainAddressPool(MainAddressPool 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 |
---|---|
MainPoolWeight[] |
getAddressPools()
Get 集合中的地址池id与权重,数组
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getMainAddressPoolId()
Get 地址池集合id
|
Long |
getMinSurviveNum()
Get 切换阀值,不能大于主力集合内地址总数
|
String |
getTrafficStrategy()
Get 切换策略:ALL解析所有地址;WEIGHT:负载均衡。当为ALL时,解析地址的权重值为1;当为WEIGHT时;权重为地址池权重*地址权重
|
void |
setAddressPools(MainPoolWeight[] AddressPools)
Set 集合中的地址池id与权重,数组
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMainAddressPoolId(Long MainAddressPoolId)
Set 地址池集合id
|
void |
setMinSurviveNum(Long MinSurviveNum)
Set 切换阀值,不能大于主力集合内地址总数
|
void |
setTrafficStrategy(String TrafficStrategy)
Set 切换策略:ALL解析所有地址;WEIGHT:负载均衡。当为ALL时,解析地址的权重值为1;当为WEIGHT时;权重为地址池权重*地址权重
|
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 MainAddressPool()
public MainAddressPool(MainAddressPool source)
public MainPoolWeight[] getAddressPools()
public void setAddressPools(MainPoolWeight[] AddressPools)
AddressPools
- 集合中的地址池id与权重,数组
注意:此字段可能返回 null,表示取不到有效值。public Long getMainAddressPoolId()
public void setMainAddressPoolId(Long MainAddressPoolId)
MainAddressPoolId
- 地址池集合idpublic Long getMinSurviveNum()
public void setMinSurviveNum(Long MinSurviveNum)
MinSurviveNum
- 切换阀值,不能大于主力集合内地址总数public String getTrafficStrategy()
public void setTrafficStrategy(String TrafficStrategy)
TrafficStrategy
- 切换策略:ALL解析所有地址;WEIGHT:负载均衡。当为ALL时,解析地址的权重值为1;当为WEIGHT时;权重为地址池权重*地址权重Copyright © 2025. All rights reserved.