public enum RaftState extends Enum<RaftState>
Enum Constant and Description |
---|
Candidate |
Follower |
IsolatedLeader |
Leader |
PreLeader |
Modifier and Type | Method and Description |
---|---|
static RaftState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftState Candidate
public static final RaftState Follower
public static final RaftState Leader
public static final RaftState IsolatedLeader
public static final RaftState PreLeader
public static RaftState[] values()
for (RaftState c : RaftState.values()) System.out.println(c);
public static RaftState 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 © 2019 OpenDaylight. All rights reserved.