public enum ReplicationMessageDescriptor extends Enum<ReplicationMessageDescriptor>
0 1 2 3 4 5 6
0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| Flags | Type | Payload Size |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Candidate/Leader ID | Term |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Log Index |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Committed Log Index |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Payload |
| ... |
| Modifier and Type | Field and Description |
|---|---|
static int |
CANDIDATE_ID_LENGTH |
static int |
CANDIDATE_ID_OFFSET |
static int |
COMMITTED_LOG_INDEX_LENGTH |
static int |
COMMITTED_LOG_INDEX_OFFSET |
static int |
FLAGS_LENGTH |
static byte |
FLAGS_NONE |
static int |
FLAGS_OFFSET |
static int |
HEADER_LENGTH |
static int |
HEADER_OFFSET |
static int |
LEADER_ID_LENGTH |
static int |
LEADER_ID_OFFSET |
static int |
LOG_INDEX_LENGTH |
static int |
LOG_INDEX_OFFSET |
static int |
PAYLOAD_OFFSET |
static int |
PAYLOAD_SIZE_LENGTH |
static int |
PAYLOAD_SIZE_OFFSET |
static int |
TERM_LENGTH |
static int |
TERM_OFFSET |
static int |
TYPE_LENGTH |
static int |
TYPE_OFFSET |
static byte |
VERSION |
static int |
VERSION_LENGTH |
static int |
VERSION_OFFSET |
| Modifier and Type | Method and Description |
|---|---|
static int |
candidateId(DirectBuffer buffer) |
static int |
committedLogIndex(DirectBuffer buffer) |
static byte |
flags(DirectBuffer buffer) |
static int |
leaderId(DirectBuffer buffer) |
static int |
logIndex(DirectBuffer buffer) |
static int |
payloadSize(DirectBuffer buffer) |
static int |
term(DirectBuffer buffer) |
static byte |
type(DirectBuffer buffer) |
static ReplicationMessageDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationMessageDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static byte |
version(DirectBuffer buffer) |
public static final byte VERSION
public static final byte FLAGS_NONE
public static final int VERSION_OFFSET
public static final int VERSION_LENGTH
public static final int FLAGS_OFFSET
public static final int FLAGS_LENGTH
public static final int TYPE_OFFSET
public static final int TYPE_LENGTH
public static final int PAYLOAD_SIZE_OFFSET
public static final int PAYLOAD_SIZE_LENGTH
public static final int CANDIDATE_ID_OFFSET
public static final int CANDIDATE_ID_LENGTH
public static final int TERM_OFFSET
public static final int TERM_LENGTH
public static final int LOG_INDEX_OFFSET
public static final int LOG_INDEX_LENGTH
public static final int COMMITTED_LOG_INDEX_OFFSET
public static final int COMMITTED_LOG_INDEX_LENGTH
public static final int HEADER_OFFSET
public static final int HEADER_LENGTH
public static final int PAYLOAD_OFFSET
public static final int LEADER_ID_OFFSET
public static final int LEADER_ID_LENGTH
public static ReplicationMessageDescriptor[] values()
for (ReplicationMessageDescriptor c : ReplicationMessageDescriptor.values()) System.out.println(c);
public static ReplicationMessageDescriptor 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 byte version(DirectBuffer buffer)
public static byte flags(DirectBuffer buffer)
public static byte type(DirectBuffer buffer)
public static int candidateId(DirectBuffer buffer)
public static int leaderId(DirectBuffer buffer)
public static int term(DirectBuffer buffer)
public static int logIndex(DirectBuffer buffer)
public static int committedLogIndex(DirectBuffer buffer)
public static int payloadSize(DirectBuffer buffer)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.