Package alpine.tasks
Class AlpineTaskScheduler
- java.lang.Object
-
- alpine.tasks.AlpineTaskScheduler
-
public abstract class AlpineTaskScheduler extends Object
A simple framework for scheduling events to run periodically. Works in conjunction with theEventServiceto process events.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Constructor Summary
Constructors Constructor Description AlpineTaskScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidscheduleEvent(Event event, long delay, long period)Schedules a repeating Event.voidshutdown()Shuts town the TaskScheduler by canceling all scheduled events.
-
-
-
Method Detail
-
scheduleEvent
protected void scheduleEvent(Event event, long delay, long period)
Schedules a repeating Event.- Parameters:
event- the Event to scheduledelay- delay in milliseconds before task is to be executed.period- time in milliseconds between successive task executions.
-
shutdown
public void shutdown()
Shuts town the TaskScheduler by canceling all scheduled events.
-
-