public enum TimerCommands extends Enum<TimerCommands>
TimerTriggerInput either when outputting an event through the
command loopback or when polling the timer trigger input.| Modifier and Type | Field and Description |
|---|---|
static int |
TRIGGER_TIMER
Command issued by
TimerTriggerInput; its processing subsequently triggers a TimerEvents.TIMER_EXPIRED event. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isTimerCommand(Command command) |
static boolean |
isTimerCommand(Frame frame) |
static boolean |
isTimerCommandType(int commandType) |
static String |
timerCommandName(Command command) |
static String |
timerCommandName(Frame frame) |
static String |
timerCommandName(int commandType) |
static long |
timerId(Command command) |
static int |
timerRepetition(Command command) |
static long |
timerTimeout(Command command) |
static int |
timerType(Command command) |
static int |
triggerTimer(MutableDirectBuffer buffer,
int offset,
long timerId,
int timerType,
int repetition,
long timeout) |
static TimerCommands |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimerCommands[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int TRIGGER_TIMER
TimerTriggerInput; its processing subsequently triggers a TimerEvents.TIMER_EXPIRED event.public static TimerCommands[] values()
for (TimerCommands c : TimerCommands.values()) System.out.println(c);
public static TimerCommands 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 triggerTimer(MutableDirectBuffer buffer, int offset, long timerId, int timerType, int repetition, long timeout)
public static long timerId(Command command)
public static int timerType(Command command)
public static int timerRepetition(Command command)
public static long timerTimeout(Command command)
public static boolean isTimerCommand(Command command)
public static boolean isTimerCommand(Frame frame)
public static boolean isTimerCommandType(int commandType)
public static String timerCommandName(int commandType)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.