public class StrategyConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
StrategyConfig() |
StrategyConfig(StrategyConfig 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 |
getBatchSize()
Get The quantity of restarts per batch during a rolling restart, with the maximum number of restarts being 99999
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getDealOnFail()
Get The failure handling policy.
|
Long |
getRollingRestartSwitch()
Get `0`: Disable rolling restart
`1`: Enable rolling restart
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getTimeWait()
Get The wait time (in seconds) per batch in rolling restart, with a maximum value of 5 minutes.
|
void |
setBatchSize(Long BatchSize)
Set The quantity of restarts per batch during a rolling restart, with the maximum number of restarts being 99999
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDealOnFail(Long DealOnFail)
Set The failure handling policy.
|
void |
setRollingRestartSwitch(Long RollingRestartSwitch)
Set `0`: Disable rolling restart
`1`: Enable rolling restart
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTimeWait(Long TimeWait)
Set The wait time (in seconds) per batch in rolling restart, with a maximum value of 5 minutes.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public StrategyConfig()
public StrategyConfig(StrategyConfig source)
public Long getRollingRestartSwitch()
public void setRollingRestartSwitch(Long RollingRestartSwitch)
RollingRestartSwitch
- `0`: Disable rolling restart
`1`: Enable rolling restart
Note: This field may return null, indicating that no valid values can be obtained.public Long getBatchSize()
public void setBatchSize(Long BatchSize)
BatchSize
- The quantity of restarts per batch during a rolling restart, with the maximum number of restarts being 99999
Note: This field may return null, indicating that no valid values can be obtained.public Long getTimeWait()
public void setTimeWait(Long TimeWait)
TimeWait
- The wait time (in seconds) per batch in rolling restart, with a maximum value of 5 minutes.
Note: This field may return null, indicating that no valid values can be obtained.public Long getDealOnFail()
public void setDealOnFail(Long DealOnFail)
DealOnFail
- The failure handling policy. Valid values: `0` (blocks the process) and `1` (skips).
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.