Package alpine.server.tasks
Class AlpineTaskScheduler
java.lang.Object
alpine.server.tasks.AlpineTaskScheduler
A simple framework for scheduling events to run periodically. Works in
conjunction with the
EventService to process events.- Since:
- 1.0.0
- Author:
- Steve Springett
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidscheduleEvent(Event event, long delay, long period) Schedules a repeating Event.voidshutdown()Shuts town the TaskScheduler by canceling all scheduled events.
-
Constructor Details
-
AlpineTaskScheduler
public AlpineTaskScheduler()
-
-
Method Details
-
scheduleEvent
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.
-