public class ModifyReadOnlyGroupConfigRequest extends AbstractModel
Constructor and Description |
---|
ModifyReadOnlyGroupConfigRequest() |
ModifyReadOnlyGroupConfigRequest(ModifyReadOnlyGroupConfigRequest 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 |
getMaxReplayLag()
Get Delay threshold in ms
|
Long |
getMaxReplayLatency()
Get Delayed log size threshold in MB
|
Long |
getMinDelayEliminateReserve()
Get The minimum number of read-only replicas that must be retained in an RO group
|
String |
getReadOnlyGroupId()
Get RO group ID
|
String |
getReadOnlyGroupName()
Get RO group name
|
Long |
getRebalance()
Get Whether to enable automatic load balancing.
|
Long |
getReplayLagEliminate()
Get Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold.
|
Long |
getReplayLatencyEliminate()
Get Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold.
|
void |
setMaxReplayLag(Long MaxReplayLag)
Set Delay threshold in ms
|
void |
setMaxReplayLatency(Long MaxReplayLatency)
Set Delayed log size threshold in MB
|
void |
setMinDelayEliminateReserve(Long MinDelayEliminateReserve)
Set The minimum number of read-only replicas that must be retained in an RO group
|
void |
setReadOnlyGroupId(String ReadOnlyGroupId)
Set RO group ID
|
void |
setReadOnlyGroupName(String ReadOnlyGroupName)
Set RO group name
|
void |
setRebalance(Long Rebalance)
Set Whether to enable automatic load balancing.
|
void |
setReplayLagEliminate(Long ReplayLagEliminate)
Set Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold.
|
void |
setReplayLatencyEliminate(Long ReplayLatencyEliminate)
Set Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ModifyReadOnlyGroupConfigRequest()
public ModifyReadOnlyGroupConfigRequest(ModifyReadOnlyGroupConfigRequest source)
public String getReadOnlyGroupId()
public void setReadOnlyGroupId(String ReadOnlyGroupId)
ReadOnlyGroupId
- RO group IDpublic String getReadOnlyGroupName()
public void setReadOnlyGroupName(String ReadOnlyGroupName)
ReadOnlyGroupName
- RO group namepublic Long getReplayLagEliminate()
public void setReplayLagEliminate(Long ReplayLagEliminate)
ReplayLagEliminate
- Whether to remove a read-only replica from an RO group if the delay between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).public Long getReplayLatencyEliminate()
public void setReplayLatencyEliminate(Long ReplayLatencyEliminate)
ReplayLatencyEliminate
- Whether to remove a read-only replica from an RO group if the sync log size difference between the read-only replica and the primary instance exceeds the threshold. Valid values: `0` (no), `1` (yes).public Long getMaxReplayLatency()
public void setMaxReplayLatency(Long MaxReplayLatency)
MaxReplayLatency
- Delayed log size threshold in MBpublic Long getMaxReplayLag()
public void setMaxReplayLag(Long MaxReplayLag)
MaxReplayLag
- Delay threshold in mspublic Long getRebalance()
public void setRebalance(Long Rebalance)
Rebalance
- Whether to enable automatic load balancing. Valid values: `0` (disable), `1` (enable).public Long getMinDelayEliminateReserve()
public void setMinDelayEliminateReserve(Long MinDelayEliminateReserve)
MinDelayEliminateReserve
- The minimum number of read-only replicas that must be retained in an RO groupCopyright © 2023. All rights reserved.