public enum TimerPayloadDescriptor extends Enum<TimerPayloadDescriptor>
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Timer ID | +-------+-------+-------+-------+-------+-------+-------+-------+ | Timer Type | Repetition | +-------+-------+-------+-------+-------+-------+-------+-------+ | Timeout | +-------+-------+-------+-------+-------+-------+-------+-------+
| Modifier and Type | Field and Description |
|---|---|
static int |
PAYLOAD_SIZE |
static int |
TIMER_ID_LENGTH |
static int |
TIMER_ID_OFFSET |
static int |
TIMER_REPETITION_LENGTH |
static int |
TIMER_REPETITION_OFFSET |
static int |
TIMER_TIMEOUT_LENGTH |
static int |
TIMER_TIMEOUT_OFFSET |
static int |
TIMER_TYPE_LENGTH |
static int |
TIMER_TYPE_OFFSET |
| Modifier and Type | Method and Description |
|---|---|
static long |
timerId(DirectBuffer payload) |
static int |
timerRepetition(DirectBuffer payload) |
static long |
timerTimeout(DirectBuffer payload) |
static int |
timerType(DirectBuffer payload) |
static TimerPayloadDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimerPayloadDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int TIMER_ID_OFFSET
public static final int TIMER_ID_LENGTH
public static final int TIMER_TYPE_OFFSET
public static final int TIMER_TYPE_LENGTH
public static final int TIMER_REPETITION_OFFSET
public static final int TIMER_REPETITION_LENGTH
public static final int TIMER_TIMEOUT_OFFSET
public static final int TIMER_TIMEOUT_LENGTH
public static final int PAYLOAD_SIZE
public static TimerPayloadDescriptor[] values()
for (TimerPayloadDescriptor c : TimerPayloadDescriptor.values()) System.out.println(c);
public static TimerPayloadDescriptor 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 long timerId(DirectBuffer payload)
public static int timerType(DirectBuffer payload)
public static int timerRepetition(DirectBuffer payload)
public static long timerTimeout(DirectBuffer payload)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.