Class DailyTimeIntervalTriggerMonthImpl

java.lang.Object
org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
cn.sinozg.applet.quartz.use.ext.DailyTimeIntervalTriggerMonthImpl
All Implemented Interfaces:
DailyTimeIntervalMonthTrigger, Serializable, Cloneable, Comparable<org.quartz.Trigger>, org.quartz.impl.triggers.CoreTrigger, org.quartz.spi.MutableTrigger, org.quartz.spi.OperableTrigger, org.quartz.Trigger

public class DailyTimeIntervalTriggerMonthImpl extends org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger> implements DailyTimeIntervalMonthTrigger, org.quartz.impl.triggers.CoreTrigger
Since:
2024-01-15 14:28
Author:
xieyubin
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.quartz.Trigger

    org.quartz.Trigger.CompletedExecutionInstruction, org.quartz.Trigger.TriggerState, org.quartz.Trigger.TriggerTimeComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private Set<Integer>
     
    private Date
     
    private org.quartz.TimeOfDay
     
    private Date
     
    private static final int
     
    private static final int
     
    private static final long
     
    private Date
     
    private int
     
    private int
     
    private org.quartz.DateBuilder.IntervalUnit
     
    private static final long
     
     
    private org.quartz.TimeOfDay
     
    private int
     
    private static final int
    Constants.

    Fields inherited from interface org.quartz.Trigger

    DEFAULT_PRIORITY, MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY, MISFIRE_INSTRUCTION_SMART_POLICY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a DailyTimeIntervalTrigger with no settings.
    DailyTimeIntervalTriggerMonthImpl(String name, String group, String jobName, String jobGroup, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
    Create a DailyTimeIntervalTrigger that will occur at the given time, fire the identified Job and repeat at the the given interval until the given end time.
    DailyTimeIntervalTriggerMonthImpl(String name, String group, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
    Create a DailyTimeIntervalTrigger that will occur at the given time, and repeat at the the given interval until the given end time.
    DailyTimeIntervalTriggerMonthImpl(String name, String group, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
    Create a DailyTimeIntervalTrigger that will occur immediately, and repeat at the the given interval.
    DailyTimeIntervalTriggerMonthImpl(String name, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
    Create a DailyTimeIntervalTrigger that will occur at the given time, and repeat at the the given interval until the given end time.
    DailyTimeIntervalTriggerMonthImpl(String name, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)
    Create a DailyTimeIntervalTrigger that will occur immediately, and repeat at the the given interval.
  • Method Summary

    Modifier and Type
    Method
    Description
    private Date
    advanceToNextDayOfMonthIfNecessary(Date fireTime, boolean forceToAdvanceNextDay)
    Given fireTime time determine if it is on a valid day of week.
    computeFirstFireTime(org.quartz.Calendar calendar)
    Called by the scheduler at the time a Trigger is first added to the scheduler, in order to have the Trigger compute its first fire time, based on any associated calendar.
    private Calendar
     
    The days of the month upon which to fire.
    Get the time at which the DailyTimeIntervalTrigger should quit repeating.
    org.quartz.TimeOfDay
    The time of day to complete firing at the given interval.
    Returns the final time at which the DailyTimeIntervalTrigger will fire, if there is no end time set, null will be returned.
    Returns the next time at which the DailyTimeIntervalTrigger will fire, after the given time.
    Returns the next time at which the Trigger is scheduled to fire.
    Returns the previous time at which the DailyTimeIntervalTrigger fired.
    int
    Get the the number of times for interval this trigger should repeat, after which it will be automatically deleted.
    int
    Get the the time interval that will be added to the DateIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.
    org.quartz.DateBuilder.IntervalUnit
    Get the interval unit - the time unit on with the interval applies.
    org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger>
    Get a ScheduleBuilder that is configured to produce a schedule identical to this trigger's schedule.
    Get the time at which the DailyTimeIntervalTrigger should occur.
    org.quartz.TimeOfDay
    The time of day to start firing at the given interval.
    int
    Get the number of times the DateIntervalTrigger has already fired.
    boolean
    This trigger has no additional properties besides what's defined in this class.
    private boolean
    isSameDay(Date d1, Date d2)
     
    boolean
    Determines whether or not the DailyTimeIntervalTrigger will occur again.
    void
    setDaysOfMonth(Set<Integer> daysOfMonth)
     
    void
    setEndTime(Date endTime)
    Set the time at which the DailyTimeIntervalTrigger should quit repeating (and be automatically deleted).
    void
    setEndTimeOfDay(org.quartz.TimeOfDay endTimeOfDay)
     
    void
    setNextFireTime(Date nextFireTime)
    Set the next time at which the DailyTimeIntervalTrigger should fire.
    void
    setPreviousFireTime(Date previousFireTime)
    Set the previous time at which the DailyTimeIntervalTrigger fired.
    void
    setRepeatCount(int repeatCount)
     
    void
    setRepeatInterval(int repeatInterval)
    set the the time interval that will be added to the DailyTimeIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.
    void
    setRepeatIntervalUnit(org.quartz.DateBuilder.IntervalUnit intervalUnit)
    Set the interval unit - the time unit on with the interval applies.
    void
    setStartTime(Date startTime)
    Set the time at which the DailyTimeIntervalTrigger should occur.
    void
    setStartTimeOfDay(org.quartz.TimeOfDay startTimeOfDay)
     
    void
    setTimesTriggered(int timesTriggered)
    Set the number of times the DailyTimeIntervalTrigger has already fired.
    void
    triggered(org.quartz.Calendar calendar)
    Called when the Scheduler has decided to 'fire' the trigger (execute the associated Job), in order to give the Trigger a chance to update itself for its next triggering (if any).
    void
    updateAfterMisfire(org.quartz.Calendar cal)
    Updates the DailyTimeIntervalTrigger's state based on the MISFIRE_INSTRUCTION_XXX that was selected when the DailyTimeIntervalTrigger was created.
    void
    updateWithNewCalendar(org.quartz.Calendar calendar, long misfireThreshold)
     
    void
    Validates whether the properties of the JobDetail are valid for submission into a Scheduler.
    protected boolean
    validateMisfireInstruction(int misfireInstruction)
     

    Methods inherited from class org.quartz.impl.triggers.AbstractTrigger

    clone, compareTo, equals, executionComplete, getCalendarName, getDescription, getFireInstanceId, getFullJobName, getFullName, getGroup, getJobDataMap, getJobGroup, getJobKey, getJobName, getKey, getMisfireInstruction, getName, getPriority, getTriggerBuilder, hashCode, setCalendarName, setDescription, setFireInstanceId, setGroup, setJobDataMap, setJobGroup, setJobKey, setJobName, setKey, setMisfireInstruction, setName, setPriority, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface cn.sinozg.applet.quartz.use.ext.DailyTimeIntervalMonthTrigger

    getTriggerBuilder

    Methods inherited from interface org.quartz.Trigger

    compareTo, equals, getCalendarName, getDescription, getJobDataMap, getJobKey, getKey, getMisfireInstruction, getPriority
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • YEAR_TO_GIVEUP_SCHEDULING_AT

      private static final int YEAR_TO_GIVEUP_SCHEDULING_AT
      Constants.
    • startTime

      private LocalDateTime startTime
    • endTime

      private Date endTime
    • nextFireTime

      private Date nextFireTime
    • previousFireTime

      private Date previousFireTime
    • repeatCount

      private int repeatCount
    • repeatInterval

      private int repeatInterval
    • repeatIntervalUnit

      private org.quartz.DateBuilder.IntervalUnit repeatIntervalUnit
    • daysOfMonth

      private Set<Integer> daysOfMonth
    • startTimeOfDay

      private org.quartz.TimeOfDay startTimeOfDay
    • endTimeOfDay

      private org.quartz.TimeOfDay endTimeOfDay
    • timesTriggered

      private int timesTriggered
    • complete

      private boolean complete
    • NUM_60

      private static final long NUM_60
      See Also:
    • NUM_24

      private static final int NUM_24
      See Also:
    • NUM_31

      private static final int NUM_31
      See Also:
  • Constructor Details

    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl()

      Create a DailyTimeIntervalTrigger with no settings.

    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl(String name, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)

      Create a DailyTimeIntervalTrigger that will occur immediately, and repeat at the the given interval.

      Parameters:
      startTimeOfDay - The TimeOfDay that the repeating should begin occurring.
      endTimeOfDay - The TimeOfDay that the repeating should stop occurring.
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
      Throws:
      IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.
    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl(String name, String group, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)

      Create a DailyTimeIntervalTrigger that will occur immediately, and repeat at the the given interval.

      Parameters:
      startTimeOfDay - The TimeOfDay that the repeating should begin occurring.
      endTimeOfDay - The TimeOfDay that the repeating should stop occurring.
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
      Throws:
      IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.
    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl(String name, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)

      Create a DailyTimeIntervalTrigger that will occur at the given time, and repeat at the the given interval until the given end time.

      Parameters:
      startTime - A Date set to the time for the Trigger to fire.
      endTime - A Date set to the time for the Trigger to quit repeat firing.
      startTimeOfDay - The TimeOfDay that the repeating should begin occurring.
      endTimeOfDay - The TimeOfDay that the repeating should stop occurring.
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
      repeatInterval - The number of milliseconds to pause between the repeat firing.
      Throws:
      IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.
    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl(String name, String group, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)

      Create a DailyTimeIntervalTrigger that will occur at the given time, and repeat at the the given interval until the given end time.

      Parameters:
      startTime - A Date set to the time for the Trigger to fire.
      endTime - A Date set to the time for the Trigger to quit repeat firing.
      startTimeOfDay - The TimeOfDay that the repeating should begin occurring.
      endTimeOfDay - The TimeOfDay that the repeating should stop occurring.
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
      repeatInterval - The number of milliseconds to pause between the repeat firing.
      Throws:
      IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.
    • DailyTimeIntervalTriggerMonthImpl

      public DailyTimeIntervalTriggerMonthImpl(String name, String group, String jobName, String jobGroup, Date startTime, Date endTime, org.quartz.TimeOfDay startTimeOfDay, org.quartz.TimeOfDay endTimeOfDay, org.quartz.DateBuilder.IntervalUnit intervalUnit, int repeatInterval)

      Create a DailyTimeIntervalTrigger that will occur at the given time, fire the identified Job and repeat at the the given interval until the given end time.

      Parameters:
      startTime - A Date set to the time for the Trigger to fire.
      endTime - A Date set to the time for the Trigger to quit repeat firing.
      startTimeOfDay - The TimeOfDay that the repeating should begin occurring.
      endTimeOfDay - The TimeOfDay that the repeating should stop occurring.
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
      repeatInterval - The number of milliseconds to pause between the repeat firing.
      Throws:
      IllegalArgumentException - if an invalid IntervalUnit is given, or the repeat interval is zero or less.
  • Method Details

    • getStartTime

      public Date getStartTime()

      Get the time at which the DailyTimeIntervalTrigger should occur. It defaults to the getStartTimeOfDay of current day.

      Specified by:
      getStartTime in interface org.quartz.Trigger
      Specified by:
      getStartTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • setStartTime

      public void setStartTime(Date startTime)

      Set the time at which the DailyTimeIntervalTrigger should occur. if startTime is null.

      Specified by:
      setStartTime in interface org.quartz.spi.MutableTrigger
      Specified by:
      setStartTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • getEndTime

      public Date getEndTime()

      Get the time at which the DailyTimeIntervalTrigger should quit repeating.

      Specified by:
      getEndTime in interface org.quartz.Trigger
      Specified by:
      getEndTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      See Also:
    • setEndTime

      public void setEndTime(Date endTime)

      Set the time at which the DailyTimeIntervalTrigger should quit repeating (and be automatically deleted).

      Specified by:
      setEndTime in interface org.quartz.spi.MutableTrigger
      Specified by:
      setEndTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      Throws:
      IllegalArgumentException - if endTime is before start time.
    • getRepeatIntervalUnit

      public org.quartz.DateBuilder.IntervalUnit getRepeatIntervalUnit()
      Description copied from interface: DailyTimeIntervalMonthTrigger

      Get the interval unit - the time unit on with the interval applies.

      The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.

      Specified by:
      getRepeatIntervalUnit in interface DailyTimeIntervalMonthTrigger
      Returns:
      DateBuilder
      See Also:
    • setRepeatIntervalUnit

      public void setRepeatIntervalUnit(org.quartz.DateBuilder.IntervalUnit intervalUnit)

      Set the interval unit - the time unit on with the interval applies.

      Parameters:
      intervalUnit - The repeat interval unit. The only intervals that are valid for this type of trigger are DateBuilder.IntervalUnit.SECOND, DateBuilder.IntervalUnit.MINUTE, and DateBuilder.IntervalUnit.HOUR.
    • getRepeatInterval

      public int getRepeatInterval()
      Description copied from interface: DailyTimeIntervalMonthTrigger

      Get the the time interval that will be added to the DateIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.

      Specified by:
      getRepeatInterval in interface DailyTimeIntervalMonthTrigger
      Returns:
      repeatInterval
      See Also:
    • setRepeatInterval

      public void setRepeatInterval(int repeatInterval)

      set the the time interval that will be added to the DailyTimeIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.

      Throws:
      IllegalArgumentException - if repeatInterval is < 0
    • getTimesTriggered

      public int getTimesTriggered()
      Description copied from interface: DailyTimeIntervalMonthTrigger

      Get the number of times the DateIntervalTrigger has already fired.

      Specified by:
      getTimesTriggered in interface DailyTimeIntervalMonthTrigger
      Returns:
      timesTriggered
      See Also:
    • setTimesTriggered

      public void setTimesTriggered(int timesTriggered)

      Set the number of times the DailyTimeIntervalTrigger has already fired.

    • validateMisfireInstruction

      protected boolean validateMisfireInstruction(int misfireInstruction)
      Specified by:
      validateMisfireInstruction in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • updateAfterMisfire

      public void updateAfterMisfire(org.quartz.Calendar cal)

      Updates the DailyTimeIntervalTrigger's state based on the MISFIRE_INSTRUCTION_XXX that was selected when the DailyTimeIntervalTrigger was created.

      If the misfire instruction is set to MISFIRE_INSTRUCTION_SMART_POLICY, then the following scheme will be used:

      • The instruction will be interpreted as MISFIRE_INSTRUCTION_FIRE_ONCE_NOW

      Specified by:
      updateAfterMisfire in interface org.quartz.spi.OperableTrigger
      Specified by:
      updateAfterMisfire in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • triggered

      public void triggered(org.quartz.Calendar calendar)

      Called when the Scheduler has decided to 'fire' the trigger (execute the associated Job), in order to give the Trigger a chance to update itself for its next triggering (if any).

      Specified by:
      triggered in interface org.quartz.spi.OperableTrigger
      Specified by:
      triggered in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      See Also:
      • AbstractTrigger.executionComplete(JobExecutionContext, JobExecutionException)
    • updateWithNewCalendar

      public void updateWithNewCalendar(org.quartz.Calendar calendar, long misfireThreshold)
      Specified by:
      updateWithNewCalendar in interface org.quartz.spi.OperableTrigger
      Specified by:
      updateWithNewCalendar in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      See Also:
      • AbstractTrigger.updateWithNewCalendar(org.quartz.Calendar, long)
    • computeFirstFireTime

      public Date computeFirstFireTime(org.quartz.Calendar calendar)

      Called by the scheduler at the time a Trigger is first added to the scheduler, in order to have the Trigger compute its first fire time, based on any associated calendar.

      After this method has been called, getNextFireTime() should return a valid answer.

      Specified by:
      computeFirstFireTime in interface org.quartz.spi.OperableTrigger
      Specified by:
      computeFirstFireTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      Returns:
      the first time at which the Trigger will be fired by the scheduler, which is also the same value getNextFireTime() will return (until after the first firing of the Trigger).

    • createCalendarTime

      private Calendar createCalendarTime(Date dateTime)
    • getNextFireTime

      public Date getNextFireTime()

      Returns the next time at which the Trigger is scheduled to fire. If the trigger will not fire again, null will be returned. Note that the time returned can possibly be in the past, if the time that was computed for the trigger to next fire has already arrived, but the scheduler has not yet been able to fire the trigger (which would likely be due to lack of resources e.g. threads).

      The value returned is not guaranteed to be valid until after the Trigger has been added to the scheduler.

      Specified by:
      getNextFireTime in interface org.quartz.Trigger
      Specified by:
      getNextFireTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • getPreviousFireTime

      public Date getPreviousFireTime()

      Returns the previous time at which the DailyTimeIntervalTrigger fired. If the trigger has not yet fired, null will be returned.

      Specified by:
      getPreviousFireTime in interface org.quartz.Trigger
      Specified by:
      getPreviousFireTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • setNextFireTime

      public void setNextFireTime(Date nextFireTime)

      Set the next time at which the DailyTimeIntervalTrigger should fire.

      This method should not be invoked by client code.

      Specified by:
      setNextFireTime in interface org.quartz.spi.OperableTrigger
    • setPreviousFireTime

      public void setPreviousFireTime(Date previousFireTime)

      Set the previous time at which the DailyTimeIntervalTrigger fired.

      This method should not be invoked by client code.

      Specified by:
      setPreviousFireTime in interface org.quartz.spi.OperableTrigger
    • getFireTimeAfter

      public Date getFireTimeAfter(Date afterTime)

      Returns the next time at which the DailyTimeIntervalTrigger will fire, after the given time. If the trigger will not fire after the given time, null will be returned.

      Specified by:
      getFireTimeAfter in interface org.quartz.Trigger
      Specified by:
      getFireTimeAfter in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • isSameDay

      private boolean isSameDay(Date d1, Date d2)
    • advanceToNextDayOfMonthIfNecessary

      private Date advanceToNextDayOfMonthIfNecessary(Date fireTime, boolean forceToAdvanceNextDay)
      Given fireTime time determine if it is on a valid day of week. If so, simply return it unaltered, if not, advance to the next valid week day, and set the time of day to the start time of day
      Parameters:
      fireTime - - given next fireTime.
      forceToAdvanceNextDay - - flag to whether to advance day without check existing week day. This scenario can happen when a caller determine fireTime has passed the endTimeOfDay that fireTime should move to next day anyway.
      Returns:
      a next day fireTime.
    • getFinalFireTime

      public Date getFinalFireTime()

      Returns the final time at which the DailyTimeIntervalTrigger will fire, if there is no end time set, null will be returned.

      Note that the return time may be in the past.

      Specified by:
      getFinalFireTime in interface org.quartz.Trigger
      Specified by:
      getFinalFireTime in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • mayFireAgain

      public boolean mayFireAgain()

      Determines whether or not the DailyTimeIntervalTrigger will occur again.

      Specified by:
      mayFireAgain in interface org.quartz.Trigger
      Specified by:
      mayFireAgain in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
    • validate

      public void validate() throws org.quartz.SchedulerException

      Validates whether the properties of the JobDetail are valid for submission into a Scheduler.

      Specified by:
      validate in interface org.quartz.spi.OperableTrigger
      Overrides:
      validate in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      Throws:
      IllegalStateException - if a required property (such as Name, Group, Class) is not set.
      org.quartz.SchedulerException
    • getDaysOfMonth

      public Set<Integer> getDaysOfMonth()
      The days of the month upon which to fire.
      Specified by:
      getDaysOfMonth in interface DailyTimeIntervalMonthTrigger
      Returns:
      1-31
    • setDaysOfMonth

      public void setDaysOfMonth(Set<Integer> daysOfMonth)
    • getStartTimeOfDay

      public org.quartz.TimeOfDay getStartTimeOfDay()
      The time of day to start firing at the given interval.
      Specified by:
      getStartTimeOfDay in interface DailyTimeIntervalMonthTrigger
      Returns:
      startTimeOfDay
    • setStartTimeOfDay

      public void setStartTimeOfDay(org.quartz.TimeOfDay startTimeOfDay)
    • getEndTimeOfDay

      public org.quartz.TimeOfDay getEndTimeOfDay()
      The time of day to complete firing at the given interval.
      Specified by:
      getEndTimeOfDay in interface DailyTimeIntervalMonthTrigger
      Returns:
      endTimeOfDay
    • setEndTimeOfDay

      public void setEndTimeOfDay(org.quartz.TimeOfDay endTimeOfDay)
    • getScheduleBuilder

      public org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger> getScheduleBuilder()
      Get a ScheduleBuilder that is configured to produce a schedule identical to this trigger's schedule.
      Specified by:
      getScheduleBuilder in interface org.quartz.Trigger
      Specified by:
      getScheduleBuilder in class org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalMonthTrigger>
      See Also:
      • AbstractTrigger.getTriggerBuilder()
    • hasAdditionalProperties

      public boolean hasAdditionalProperties()
      This trigger has no additional properties besides what's defined in this class.
      Specified by:
      hasAdditionalProperties in interface org.quartz.impl.triggers.CoreTrigger
    • getRepeatCount

      public int getRepeatCount()
      Description copied from interface: DailyTimeIntervalMonthTrigger

      Get the the number of times for interval this trigger should repeat, after which it will be automatically deleted.

      Specified by:
      getRepeatCount in interface DailyTimeIntervalMonthTrigger
      Returns:
      int
      See Also:
    • setRepeatCount

      public void setRepeatCount(int repeatCount)