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 | 
|---|---|
| Arg[] | getArgs()Get 指令需要指定的参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getBatchSize()Get 滚动重启每批次的重启数量,最大重启台数为 99999 台 | 
| Long | getDealOnFail()Get 操作失败处理策略,0:失败阻塞, 1:失败自动跳过 | 
| Long | getRollingRestartSwitch()Get 0:关闭滚动重启
1:开启滚动启动 | 
| Long | getTimeWait()Get 滚动重启每批停止等待时间 ,最大间隔为 5 分钟 单位是秒 | 
| void | setArgs(Arg[] Args)Set 指令需要指定的参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setBatchSize(Long BatchSize)Set 滚动重启每批次的重启数量,最大重启台数为 99999 台 | 
| void | setDealOnFail(Long DealOnFail)Set 操作失败处理策略,0:失败阻塞, 1:失败自动跳过 | 
| void | setRollingRestartSwitch(Long RollingRestartSwitch)Set 0:关闭滚动重启
1:开启滚动启动 | 
| void | setTimeWait(Long TimeWait)Set 滚动重启每批停止等待时间 ,最大间隔为 5 分钟 单位是秒 | 
| 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 StrategyConfig()
public StrategyConfig(StrategyConfig source)
public Long getRollingRestartSwitch()
public void setRollingRestartSwitch(Long RollingRestartSwitch)
RollingRestartSwitch - 0:关闭滚动重启
1:开启滚动启动public Long getBatchSize()
public void setBatchSize(Long BatchSize)
BatchSize - 滚动重启每批次的重启数量,最大重启台数为 99999 台public Long getTimeWait()
public void setTimeWait(Long TimeWait)
TimeWait - 滚动重启每批停止等待时间 ,最大间隔为 5 分钟 单位是秒public Long getDealOnFail()
public void setDealOnFail(Long DealOnFail)
DealOnFail - 操作失败处理策略,0:失败阻塞, 1:失败自动跳过public Arg[] getArgs()
public void setArgs(Arg[] Args)
Args - 指令需要指定的参数
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.