public static enum RaftServerProtocol.Op extends Enum<RaftServerProtocol.Op>
| Enum Constant and Description |
|---|
APPEND_ENTRIES |
INSTALL_SNAPSHOT |
REQUEST_VOTE |
| Modifier and Type | Method and Description |
|---|---|
static RaftServerProtocol.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftServerProtocol.Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftServerProtocol.Op REQUEST_VOTE
public static final RaftServerProtocol.Op APPEND_ENTRIES
public static final RaftServerProtocol.Op INSTALL_SNAPSHOT
public static RaftServerProtocol.Op[] values()
for (RaftServerProtocol.Op c : RaftServerProtocol.Op.values()) System.out.println(c);
public static RaftServerProtocol.Op 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 © 2017–2020 The Apache Software Foundation. All rights reserved.