Class AbstractScheduledService.CustomScheduler

    • Constructor Detail

      • CustomScheduler

        public CustomScheduler()
    • Method Detail

      • getNextSchedule

        protected abstract AbstractScheduledService.CustomScheduler.Schedule getNextSchedule()
                                                                                      throws java.lang.Exception
        Calculates the time at which to next invoke the task.

        This is guaranteed to be called immediately after the task has completed an iteration and on the same thread as the previous execution of AbstractScheduledService.runOneIteration().

        Returns:
        a schedule that defines the delay before the next execution.
        Throws:
        java.lang.Exception