public class SwitchShardRequestBody extends Object
| Constructor and Description |
|---|
SwitchShardRequestBody() |
| Modifier and Type | Method and Description |
|---|---|
SwitchShardRequestBody |
addShardsItem(Shards shardsItem) |
boolean |
equals(Object o) |
List<Shards> |
getShards()
节点列表,支持对单个或者多个DN分片做主备切换。节点信息为将要升主的备DN分片对应的节点id和组件id。
|
int |
hashCode() |
void |
setShards(List<Shards> shards) |
String |
toString() |
SwitchShardRequestBody |
withShards(java.util.function.Consumer<List<Shards>> shardsSetter) |
SwitchShardRequestBody |
withShards(List<Shards> shards) |
public SwitchShardRequestBody withShards(List<Shards> shards)
public SwitchShardRequestBody addShardsItem(Shards shardsItem)
public SwitchShardRequestBody withShards(java.util.function.Consumer<List<Shards>> shardsSetter)
public List<Shards> getShards()
Copyright © 2022. All rights reserved.