Class EventScheduler
- java.lang.Object
-
- com.realtime.crossfire.jxclient.items.EventScheduler
-
public class EventScheduler extends java.lang.ObjectA scheduler for asynchronous event notifications. Notifications are triggered by callingtrigger(). Notifications are delivered by calling the event scheduler callback ofeventSchedulerCallback. This callback is calleddelayafter the last call totrigger()but not faster than once pereventSchedulerCallback.
-
-
Constructor Summary
Constructors Constructor Description EventScheduler(int delay, int afterEventDelay, @NotNull java.lang.Runnable eventSchedulerCallback)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()Activates this instance.voidtrigger()Notifies the callback.
-
-
-
Constructor Detail
-
EventScheduler
public EventScheduler(int delay, int afterEventDelay, @NotNull @NotNull java.lang.Runnable eventSchedulerCallback)Creates a new instance.- Parameters:
delay- the initial delayafterEventDelay- the "after-event" delayeventSchedulerCallback- the callback to notify
-
-