public enum ReplicationEvents extends Enum<ReplicationEvents>
| Modifier and Type | Field and Description |
|---|---|
static short |
LEADER_ELECTED |
static short |
LEADER_ENFORCED |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isReplicationEvent(Event event) |
static boolean |
isReplicationEvent(Frame frame) |
static boolean |
isReplicationEventType(int eventType) |
static int |
leaderElected(MutableDirectBuffer buffer,
int offset,
int term,
int leaderId) |
static int |
leaderEnforced(MutableDirectBuffer buffer,
int offset,
int term,
int leaderId) |
static int |
leaderId(Event event) |
static String |
replicationEventName(Event event) |
static String |
replicationEventName(Frame frame) |
static String |
replicationEventName(int eventType) |
static int |
term(Event event) |
static ReplicationEvents |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationEvents[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final short LEADER_ELECTED
public static final short LEADER_ENFORCED
public static ReplicationEvents[] values()
for (ReplicationEvents c : ReplicationEvents.values()) System.out.println(c);
public static ReplicationEvents 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 leaderElected(MutableDirectBuffer buffer, int offset, int term, int leaderId)
public static int leaderEnforced(MutableDirectBuffer buffer, int offset, int term, int leaderId)
public static int term(Event event)
public static int leaderId(Event event)
public static boolean isReplicationEvent(Event event)
public static boolean isReplicationEvent(Frame frame)
public static boolean isReplicationEventType(int eventType)
public static String replicationEventName(int eventType)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.