public class DailyTimeIntervalMonthScheduleBuilder extends org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger>
| 限定符和类型 | 字段和说明 |
|---|---|
static Set<Integer> |
ALL_DAYS_OF_THE_MONTH
A set of all days of the week.
|
private Set<Integer> |
daysOfMonth |
private static org.quartz.TimeOfDay |
ENDING_DAILY |
private org.quartz.TimeOfDay |
endTimeOfDay |
private int |
interval |
private org.quartz.DateBuilder.IntervalUnit |
intervalUnit |
private int |
misfireInstruction |
private int |
repeatCount |
private static org.quartz.TimeOfDay |
STARTING_DAILY |
private org.quartz.TimeOfDay |
startTimeOfDay |
| 限定符 | 构造器和说明 |
|---|---|
protected |
DailyTimeIntervalMonthScheduleBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.quartz.spi.MutableTrigger |
build()
Build the actual Trigger -- NOT intended to be invoked by end users,
but will rather be invoked by a TriggerBuilder which this
ScheduleBuilder is given to.
|
static DailyTimeIntervalMonthScheduleBuilder |
dailyTimeIntervalSchedule()
Create a DailyTimeIntervalScheduleBuilder.
|
DailyTimeIntervalMonthScheduleBuilder |
endingDailyAfterCount(int count)
Calculate and set the endTimeOfDay using count, interval and starTimeOfDay.
|
DailyTimeIntervalMonthScheduleBuilder |
endingDailyAt(org.quartz.TimeOfDay timeOfDay)
Set the startTimeOfDay for this trigger to end firing each day at the given time.
|
DailyTimeIntervalMonthScheduleBuilder |
onDaysOfTheMonth(Integer... onDaysOfMonth)
Set the trigger to fire on the given days of the month.
|
DailyTimeIntervalMonthScheduleBuilder |
onDaysOfTheMonth(Set<Integer> onDaysOfMonth)
Set the trigger to fire on the given days of the month.
|
DailyTimeIntervalMonthScheduleBuilder |
onEveryDay()
Set the trigger to fire on all days of the month.
|
DailyTimeIntervalMonthScheduleBuilder |
startingDailyAt(org.quartz.TimeOfDay timeOfDay)
Set the trigger to begin firing each day at the given time.
|
private void |
validateInterval(int timeInterval) |
DailyTimeIntervalMonthScheduleBuilder |
withInterval(int timeInterval,
org.quartz.DateBuilder.IntervalUnit unit)
Specify the time unit and interval for the Trigger to be produced.
|
DailyTimeIntervalMonthScheduleBuilder |
withIntervalInHours(int intervalInHours)
Specify an interval in the IntervalUnit.HOUR that the produced
Trigger will repeat at.
|
DailyTimeIntervalMonthScheduleBuilder |
withIntervalInMinutes(int intervalInMinutes)
Specify an interval in the IntervalUnit.MINUTE that the produced
Trigger will repeat at.
|
DailyTimeIntervalMonthScheduleBuilder |
withIntervalInSeconds(int intervalInSeconds)
Specify an interval in the IntervalUnit.SECOND that the produced
Trigger will repeat at.
|
DailyTimeIntervalMonthScheduleBuilder |
withMisfireHandlingInstructionDoNothing()
If the Trigger misfires, use the
DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_DO_NOTHING instruction. |
DailyTimeIntervalMonthScheduleBuilder |
withMisfireHandlingInstructionFireAndProceed()
If the Trigger misfires, use the
DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_FIRE_ONCE_NOW instruction. |
DailyTimeIntervalMonthScheduleBuilder |
withMisfireHandlingInstructionIgnoreMisfires()
If the Trigger misfires, use the
Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY instruction. |
DailyTimeIntervalMonthScheduleBuilder |
withRepeatCount(int repeatCount)
Set number of times for interval to repeat.
|
private int interval
private org.quartz.DateBuilder.IntervalUnit intervalUnit
private org.quartz.TimeOfDay startTimeOfDay
private org.quartz.TimeOfDay endTimeOfDay
private int repeatCount
private int misfireInstruction
public static final Set<Integer> ALL_DAYS_OF_THE_MONTH
The set contains all values between (the integers from 1 through 31).
private static final org.quartz.TimeOfDay STARTING_DAILY
private static final org.quartz.TimeOfDay ENDING_DAILY
public static DailyTimeIntervalMonthScheduleBuilder dailyTimeIntervalSchedule()
public org.quartz.spi.MutableTrigger build()
build 在类中 org.quartz.ScheduleBuilder<DailyTimeIntervalMonthTrigger>TriggerBuilder.withSchedule(ScheduleBuilder)public DailyTimeIntervalMonthScheduleBuilder withInterval(int timeInterval, org.quartz.DateBuilder.IntervalUnit unit)
timeInterval - the interval at which the trigger should repeat.unit - the time unit (IntervalUnit) of the interval. The only intervals that are valid for this type of
trigger are DateBuilder.IntervalUnit#SECOND, DateBuilder.IntervalUnit#MINUTE, and DateBuilder.IntervalUnit#HOUR.DailyTimeIntervalTrigger.getRepeatInterval(),
DailyTimeIntervalTrigger.getRepeatIntervalUnit()public DailyTimeIntervalMonthScheduleBuilder withIntervalInSeconds(int intervalInSeconds)
intervalInSeconds - the number of seconds at which the trigger should repeat.DailyTimeIntervalTrigger.getRepeatInterval(),
DailyTimeIntervalTrigger.getRepeatIntervalUnit()public DailyTimeIntervalMonthScheduleBuilder withIntervalInMinutes(int intervalInMinutes)
intervalInMinutes - the number of minutes at which the trigger should repeat.DailyTimeIntervalTrigger.getRepeatInterval(),
DailyTimeIntervalTrigger.getRepeatIntervalUnit()public DailyTimeIntervalMonthScheduleBuilder withIntervalInHours(int intervalInHours)
intervalInHours - the number of hours at which the trigger should repeat.DailyTimeIntervalTrigger.getRepeatInterval(),
DailyTimeIntervalTrigger.getRepeatIntervalUnit()public DailyTimeIntervalMonthScheduleBuilder onDaysOfTheMonth(Set<Integer> onDaysOfMonth)
onDaysOfMonth - apublic DailyTimeIntervalMonthScheduleBuilder onDaysOfTheMonth(Integer... onDaysOfMonth)
onDaysOfMonth - apublic DailyTimeIntervalMonthScheduleBuilder onEveryDay()
public DailyTimeIntervalMonthScheduleBuilder startingDailyAt(org.quartz.TimeOfDay timeOfDay)
public DailyTimeIntervalMonthScheduleBuilder endingDailyAt(org.quartz.TimeOfDay timeOfDay)
public DailyTimeIntervalMonthScheduleBuilder endingDailyAfterCount(int count)
public DailyTimeIntervalMonthScheduleBuilder withMisfireHandlingInstructionIgnoreMisfires()
Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY instruction.Trigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICYpublic DailyTimeIntervalMonthScheduleBuilder withMisfireHandlingInstructionDoNothing()
DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_DO_NOTHING instruction.DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_DO_NOTHINGpublic DailyTimeIntervalMonthScheduleBuilder withMisfireHandlingInstructionFireAndProceed()
DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_FIRE_ONCE_NOW instruction.DailyTimeIntervalTrigger.MISFIRE_INSTRUCTION_FIRE_ONCE_NOWpublic DailyTimeIntervalMonthScheduleBuilder withRepeatCount(int repeatCount)
Note: if you want total count = 1 (at start time) + repeatCount
private void validateInterval(int timeInterval)
Copyright © 2024. All rights reserved.