Class MultiSchedule

java.lang.Object
com.aoapps.cron.MultiSchedule
All Implemented Interfaces:
Schedule

public class MultiSchedule extends Object implements Schedule
A job is scheduled by matching any of a provided set of schedules.
Author:
AO Industries, Inc.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isScheduled

      public boolean isScheduled(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
      Description copied from interface: Schedule
      Determine if the job should run right now.
      Specified by:
      isScheduled in interface Schedule
      Parameters:
      minute - 0-59
      hour - 0-23
      dayOfMonth - 1-31
      month - 0-11
      dayOfWeek - 1-7, Calendar.SUNDAY through Calendar.SATURDAY