Class 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 Detail

      • MultiSchedule

        public MultiSchedule​(Iterable<? extends Schedule> schedules)
    • Method Detail

      • 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