Interface Schedule

  • All Known Implementing Classes:
    MatcherSchedule, MultiSchedule
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Schedule
    Provides a schedule for a job.
    Author:
    AO Industries, Inc.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isScheduled​(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
      Determine if the job should run right now.
    • Method Detail

      • isScheduled

        boolean isScheduled​(int minute,
                            int hour,
                            int dayOfMonth,
                            int month,
                            int dayOfWeek,
                            int year)
        Determine if the job should run right now.
        Parameters:
        minute - 0-59
        hour - 0-23
        dayOfMonth - 1-31
        month - 0-11
        dayOfWeek - 1-7, Calendar.SUNDAY through Calendar.SATURDAY