Class Scheduler


  • public class Scheduler
    extends Object
    • Constructor Detail

      • Scheduler

        public Scheduler()
    • Method Detail

      • schedule

        public void schedule​(SchedulerTask schedulerTask,
                             DeploymentIterator iterator)
        Schedules the specified task for execution according to the specified schedule. If times specified by the ScheduleIterator are in the past they are scheduled for immediate execution.
        Parameters:
        schedulerTask - task to be scheduled
        iterator - iterator that describes the schedule
        Throws:
        IllegalStateException - if task was already scheduled or cancelled, scheduler was cancelled, or scheduler thread terminated.