Interface SchedulerTemporalAdjuster

  • All Superinterfaces:
    TemporalAdjuster
    All Known Implementing Classes:
    CronAdjuster

    @NonNullByDefault
    public interface SchedulerTemporalAdjuster
    extends TemporalAdjuster
    Interface that extends TemporalAdjuster and adds more functionality. This interface is passed to the scheduler for repeating schedules.
    Author:
    Hilbrand Bouwkamp - Initial contribution
    • Method Detail

      • isDone

        boolean isDone​(Temporal temporal)
        Used by the scheduler to determine if it should continue scheduling jobs. If returns true the implementation of this interface determines the job should not run again given. No new job will be scheduled.
        Parameters:
        temporal - The temporal to determine if the next run should be scheduled
        Returns:
        true if running is done and the job should not run anymore.