public class EventScheduler
extends java.lang.Object
trigger(). Notifications are delivered by calling the
event scheduler callback of eventSchedulerCallback. This callback is
called delay after the last call to trigger() but not
faster than once per eventSchedulerCallback.| Constructor and Description |
|---|
EventScheduler(int delay,
int afterEventDelay,
@NotNull java.lang.Runnable eventSchedulerCallback)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Activates this instance.
|
void |
trigger()
Notifies the callback.
|
public EventScheduler(int delay,
int afterEventDelay,
@NotNull
@NotNull java.lang.Runnable eventSchedulerCallback)
delay - the initial delayafterEventDelay - the "after-event" delayeventSchedulerCallback - the callback to notify