public enum ReplicationCommands extends Enum<ReplicationCommands>
| Modifier and Type | Field and Description |
|---|---|
static short |
PROPOSE_LEADER |
| Modifier and Type | Method and Description |
|---|---|
static int |
candidateId(Command command) |
static boolean |
isReplicationCommand(Command command) |
static boolean |
isReplicationCommand(Frame frame) |
static boolean |
isReplicationCommandType(int commandType) |
static int |
proposeLeader(MutableDirectBuffer buffer,
int offset,
int candidateId) |
static String |
replicationCommandName(Command command) |
static String |
replicationCommandName(Frame frame) |
static String |
replicationCommandName(int commandType) |
static ReplicationCommands |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationCommands[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final short PROPOSE_LEADER
public static ReplicationCommands[] values()
for (ReplicationCommands c : ReplicationCommands.values()) System.out.println(c);
public static ReplicationCommands 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 nullpublic static int proposeLeader(MutableDirectBuffer buffer, int offset, int candidateId)
public static int candidateId(Command command)
public static boolean isReplicationCommand(Command command)
public static boolean isReplicationCommand(Frame frame)
public static boolean isReplicationCommandType(int commandType)
public static String replicationCommandName(int commandType)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.