public enum ReplicationPayloadDescriptor extends Enum<ReplicationPayloadDescriptor>
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 = 0 |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Candidate/Leader ID | Term |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Modifier and Type | Field and Description |
|---|---|
static int |
CANDIDATE_ID_LENGTH |
static int |
CANDIDATE_ID_OFFSET |
static int |
FLAGS_LENGTH |
static byte |
FLAGS_NONE |
static int |
FLAGS_OFFSET |
static int |
LEADER_ID_LENGTH |
static int |
LEADER_ID_OFFSET |
static int |
PAYLOAD_LENGTH |
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 payload) |
static byte |
flags(DirectBuffer payload) |
static int |
leaderId(DirectBuffer payload) |
static int |
payloadSize(DirectBuffer payload) |
static int |
term(DirectBuffer payload) |
static int |
type(DirectBuffer payload) |
static ReplicationPayloadDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationPayloadDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static byte |
version(DirectBuffer payload) |
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 PAYLOAD_LENGTH
public static final int LEADER_ID_OFFSET
public static final int LEADER_ID_LENGTH
public static ReplicationPayloadDescriptor[] values()
for (ReplicationPayloadDescriptor c : ReplicationPayloadDescriptor.values()) System.out.println(c);
public static ReplicationPayloadDescriptor 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 payload)
public static byte flags(DirectBuffer payload)
public static int type(DirectBuffer payload)
public static int payloadSize(DirectBuffer payload)
public static int candidateId(DirectBuffer payload)
public static int leaderId(DirectBuffer payload)
public static int term(DirectBuffer payload)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.