public class SwitchCommand extends Object implements Comparable<SwitchCommand>
| 限定符和类型 | 字段和说明 |
|---|---|
static SwitchCommand |
NOCOMMAND |
| 构造器和说明 |
|---|
SwitchCommand(String clusterKey,
long ts) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(SwitchCommand o) |
boolean |
equals(Object obj) |
String |
getClusterKey() |
long |
getTs() |
boolean |
isSwitchBackToMaster()
If no cluster is provided, or the TS is negative(which means the redirect node is gone)
We need to switch back to back.
|
String |
toString() |
public static final SwitchCommand NOCOMMAND
public SwitchCommand(String clusterKey, long ts)
public long getTs()
public String getClusterKey()
public boolean isSwitchBackToMaster()
public int compareTo(SwitchCommand o)
compareTo 在接口中 Comparable<SwitchCommand>Copyright © 2019. All rights reserved.