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 fired and expired; it is single fire event of a one-off timer or the
last fire event of a periodic timer.
|
static int |
TIMER_FIRED
Event type for event indicating a timer has fired; the timer has remaining repetitions and will fire again.
|
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 boolean |
isTimerEvent(Frame frame) |
static boolean |
isTimerEventType(int eventType) |
static int |
periodicStarted(MutableDirectBuffer buffer,
int offset,
long timerId,
int timerType,
long timeout) |
static void |
routePeriodicStarted(long timerId,
int timerType,
long timeout,
EventRouter eventRouter) |
static void |
routeTimerStarted(long timerId,
int timerType,
long timeout,
EventRouter eventRouter) |
static void |
routeTimerStopped(long timerId,
int timerType,
int repetition,
long timeout,
EventRouter eventRouter) |
static String |
timerEventName(Event event) |
static String |
timerEventName(Frame frame) |
static String |
timerEventName(int eventType) |
static int |
timerExpired(MutableDirectBuffer buffer,
int offset,
Command command) |
static int |
timerFired(MutableDirectBuffer buffer,
int offset,
Command command) |
static long |
timerId(Event event) |
static int |
timerRepetition(Event event) |
static int |
timerStarted(MutableDirectBuffer buffer,
int offset,
long timerId,
int timerType,
long timeout) |
static int |
timerStopped(MutableDirectBuffer buffer,
int offset,
long timerId,
int timerType,
int repetition,
long timeout) |
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_FIRED
TRIGGER_TIMER command.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 routeTimerStarted(long timerId,
int timerType,
long timeout,
EventRouter eventRouter)
public static void routePeriodicStarted(long timerId,
int timerType,
long timeout,
EventRouter eventRouter)
public static void routeTimerStopped(long timerId,
int timerType,
int repetition,
long timeout,
EventRouter eventRouter)
public static int timerStarted(MutableDirectBuffer buffer, int offset, long timerId, int timerType, long timeout)
public static int periodicStarted(MutableDirectBuffer buffer, int offset, long timerId, int timerType, long timeout)
public static int timerStopped(MutableDirectBuffer buffer, int offset, long timerId, int timerType, int repetition, long timeout)
public static int timerFired(MutableDirectBuffer buffer, int offset, Command command)
public static int timerExpired(MutableDirectBuffer buffer, int offset, Command command)
public static long timerId(Event event)
public static int timerType(Event event)
public static int timerRepetition(Event event)
public static long timerTimeout(Event event)
public static boolean isTimerEvent(Event event)
public static boolean isTimerEvent(Frame frame)
public static boolean isTimerEventType(int eventType)
public static String timerEventName(int eventType)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.