public interface IDailyTimeIntervalTrigger extends ITrigger
ITrigger that is used to fire a
IJobDetail based upon daily repeating
time intervals.
The trigger will fire every N (see getRepeatInterval() ) seconds,
minutes or hours (see getRepeatIntervalUnit()) during a given time
window on specified days of the week.
For example#1, a trigger can be set to fire every 72 minutes between 8:00 and 11:00 everyday. It's fire times would be 8:00, 9:12, 10:24, then next day would repeat: 8:00, 9:12, 10:24 again.
For example#2, a trigger can be set to fire every 23 minutes between 9:20 and 16:47 Monday through Friday.
On each day, the starting fire time is reset to startTimeOfDay value, and then it will add repeatInterval value to it until the endTimeOfDay is reached. If you set daysOfWeek values, then fire time will only occur during those week days period.
The default values for fields if not set are: startTimeOfDay defaults to 00:00:00, the endTimeOfDay default to 23:59:59, and daysOfWeek is default to every day. The startTime default to current time-stamp now, while endTime has not value.
If startTime is before startTimeOfDay, then it has no affect. Else if startTime after startTimeOfDay, then the first fire time for that day will be normal startTimeOfDay incremental values after startTime value. Same reversal logic is applied to endTime with endTimeOfDay.
DailyTimeIntervalScheduleBuilderITrigger.ECompletedExecutionInstruction, ITrigger.EMisfireInstruction, ITrigger.ETriggerState| Modifier and Type | Field and Description |
|---|---|
static int |
REPEAT_INDEFINITELY
Used to indicate the 'repeat count' of the trigger is indefinite.
|
DEFAULT_PRIORITY| Modifier and Type | Method and Description |
|---|---|
Set<DayOfWeek> |
getDaysOfWeek()
The days of the week upon which to fire.
|
LocalTime |
getEndTimeOfDay()
The time of day to complete firing at the given interval.
|
int |
getRepeatCount()
Get the the number of times for interval this trigger should repeat, after
which it will be automatically deleted.
|
int |
getRepeatInterval()
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. |
EIntervalUnit |
getRepeatIntervalUnit()
Get the interval unit - the time unit on with the interval applies.
|
LocalTime |
getStartTimeOfDay()
The time of day to start firing at the given interval.
|
int |
getTimesTriggered()
Get the number of times the
DateIntervalTrigger has already
fired. |
TriggerBuilder<? extends IDailyTimeIntervalTrigger> |
getTriggerBuilder()
Get a
TriggerBuilder that is configured to produce a
Trigger identical to this one. |
compareTo, equals, getCalendarName, getClone, getDescription, getEndTime, getFinalFireTime, getFireTimeAfter, getJobDataMap, getJobKey, getKey, getMisfireInstruction, getNextFireTime, getPreviousFireTime, getPriority, getScheduleBuilder, getStartTime, mayFireAgainstatic final int REPEAT_INDEFINITELY
EIntervalUnit getRepeatIntervalUnit()
EIntervalUnit.SECOND, EIntervalUnit.MINUTE, and
EIntervalUnit.HOUR.int getRepeatCount()
REPEAT_INDEFINITELYint getRepeatInterval()
DateIntervalTrigger's fire time (in the set repeat interval
unit) in order to calculate the time of the next trigger repeat.LocalTime getStartTimeOfDay()
LocalTime getEndTimeOfDay()
Set<DayOfWeek> getDaysOfWeek()
int getTimesTriggered()
DateIntervalTrigger has already
fired.TriggerBuilder<? extends IDailyTimeIntervalTrigger> getTriggerBuilder()
ITriggerTriggerBuilder that is configured to produce a
Trigger identical to this one.getTriggerBuilder in interface ITriggerITrigger.getScheduleBuilder()Copyright © 2016–2021 Philip Helger. All rights reserved.