public enum ElectionMessage extends Enum<ElectionMessage> implements MessageType
ElectionState| Modifier and Type | Class and Description |
|---|---|
static class |
ElectionMessage.VersionedVotedData |
static class |
ElectionMessage.VotedData |
| Enum Constant and Description |
|---|
created |
demote |
electionTimeout |
join |
leave |
performRoleElections |
vote |
voted |
| Modifier and Type | Method and Description |
|---|---|
static ElectionMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElectionMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnamepublic static final ElectionMessage created
public static final ElectionMessage join
public static final ElectionMessage leave
public static final ElectionMessage demote
public static final ElectionMessage performRoleElections
public static final ElectionMessage vote
public static final ElectionMessage electionTimeout
public static final ElectionMessage voted
public static ElectionMessage[] values()
for (ElectionMessage c : ElectionMessage.values()) System.out.println(c);
public static ElectionMessage 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 © 2002–2017 The Neo4j Graph Database Project. All rights reserved.