public static enum RaftServer.State extends Enum<RaftServer.State>
| Enum Constant and Description |
|---|
CANDIDATE
Candidate state.
|
FOLLOWER
Follower state.
|
INACTIVE
Start state.
|
JOIN
Join state.
|
LEADER
Leader state.
|
LEAVE
Leave state.
|
PASSIVE
Passive state.
|
| Modifier and Type | Method and Description |
|---|---|
static RaftServer.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftServer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftServer.State INACTIVE
public static final RaftServer.State JOIN
public static final RaftServer.State LEAVE
public static final RaftServer.State PASSIVE
public static final RaftServer.State FOLLOWER
public static final RaftServer.State CANDIDATE
public static final RaftServer.State LEADER
public static RaftServer.State[] values()
for (RaftServer.State c : RaftServer.State.values()) System.out.println(c);
public static RaftServer.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2013–2015. All rights reserved.