public class DefaultTimerControl extends Object implements TimerControl
PluginConfigurer.plugin(Plugin, Function)
and providing the timer state from the application state.| Constructor and Description |
|---|
DefaultTimerControl() |
DefaultTimerControl(MutableDirectBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
static long |
nextTimerId(TimerState timerState,
EventRouter eventRouter) |
long |
startTimer(int type,
long timeout,
TimerState timerState,
EventRouter eventRouter) |
boolean |
stopTimer(long id,
TimerState timerState,
EventRouter eventRouter) |
public DefaultTimerControl()
public DefaultTimerControl(MutableDirectBuffer buffer)
public long startTimer(int type,
long timeout,
TimerState timerState,
EventRouter eventRouter)
startTimer in interface TimerControlpublic boolean stopTimer(long id,
TimerState timerState,
EventRouter eventRouter)
stopTimer in interface TimerControlpublic static long nextTimerId(TimerState timerState, EventRouter eventRouter)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.