Package alpine.tasks

Class AlpineTaskScheduler


  • public abstract class AlpineTaskScheduler
    extends Object
    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 Detail

      • AlpineTaskScheduler

        public AlpineTaskScheduler()
    • Method Detail

      • scheduleEvent

        protected void scheduleEvent​(Event event,
                                     long delay,
                                     long period)
        Schedules a repeating Event.
        Parameters:
        event - the Event to schedule
        delay - 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.