public enum TimerEvents extends Enum<TimerEvents>
TimerEventApplier.| Modifier and Type | Field and Description |
|---|---|
static int |
TIMER_EXPIRED
Event type for event indicating a timer has expired, usually triggered by a
TRIGGER_TIMER command. |
static int |
TIMER_STARTED
Event type for event indicating that a timer has been started.
|
static int |
TIMER_STOPPED
Event type for event indicating that a timer has been stopped.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isTimerEvent(Event event) |
static void |
timerExpired(Command command,
EventRouter eventRouter) |
static long |
timerId(Event event) |
static void |
timerStarted(MutableDirectBuffer payloadBuffer,
int offset,
long timerId,
int timerType,
long timeout,
EventRouter eventRouter) |
static void |
timerStopped(MutableDirectBuffer payloadBuffer,
int offset,
long timerId,
int timerType,
long timeout,
EventRouter eventRouter) |
static long |
timerTimeout(Event event) |
static int |
timerType(Event event) |
static TimerEvents |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimerEvents[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int TIMER_EXPIRED
TRIGGER_TIMER command.public static final int TIMER_STARTED
public static final int TIMER_STOPPED
public static TimerEvents[] values()
for (TimerEvents c : TimerEvents.values()) System.out.println(c);
public static TimerEvents 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 void timerStarted(MutableDirectBuffer payloadBuffer, int offset, long timerId, int timerType, long timeout, EventRouter eventRouter)
public static void timerStopped(MutableDirectBuffer payloadBuffer, int offset, long timerId, int timerType, long timeout, EventRouter eventRouter)
public static void timerExpired(Command command, EventRouter eventRouter)
public static long timerId(Event event)
public static int timerType(Event event)
public static long timerTimeout(Event event)
public static boolean isTimerEvent(Event event)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.