public static class PerReplicaStates.State extends Object implements MapWriter
MapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
String |
asString |
Boolean |
isLeader |
String |
replica |
Replica.State |
state |
int |
version |
| Constructor and Description |
|---|
State(String replica,
Replica.State state,
Boolean isLeader,
int version) |
State(String replica,
Replica.State state,
Boolean isLeader,
int version,
PerReplicaStates.State duplicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static PerReplicaStates.State |
parse(String serialized) |
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizepublic final String replica
public final Replica.State state
public final Boolean isLeader
public final int version
public final String asString
public State(String replica, Replica.State state, Boolean isLeader, int version)
public State(String replica, Replica.State state, Boolean isLeader, int version, PerReplicaStates.State duplicate)
public static PerReplicaStates.State parse(String serialized)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.