Class DailyTimeIntervalTriggerImpl
- java.lang.Object
-
- org.quartz.impl.triggers.AbstractTrigger<DailyTimeIntervalTrigger>
-
- org.quartz.impl.triggers.DailyTimeIntervalTriggerImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<Trigger>,DailyTimeIntervalTrigger,CoreTrigger,MutableTrigger,OperableTrigger,Trigger
public class DailyTimeIntervalTriggerImpl extends AbstractTrigger<DailyTimeIntervalTrigger> implements DailyTimeIntervalTrigger, CoreTrigger
A concrete implementation of DailyTimeIntervalTrigger that is used to fire abased upon daily repeating time intervals.JobDetailThe trigger will fire every N (see
setRepeatInterval(int)) seconds, minutes or hours (seesetRepeatIntervalUnit(org.quartz.DateBuilder.IntervalUnit)) 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. Again, remember this trigger will reset fire time each day with startTimeOfDay, regardless of your interval or endTimeOfDay!
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 startTimeOfDay will be used and startTime has no affect other than to specify the first day of firing. Else if startTime is after startTimeOfDay, then the first fire time for that day will be the next interval after the startTime. For example, if you set startingTimeOfDay=9am, endingTimeOfDay=11am, interval=15 mins, and startTime=9:33am, then the next fire time will be 9:45pm. Note also that if you do not set startTime value, the trigger builder will default to current time, and current time maybe before or after the startTimeOfDay! So be aware how you set your startTime.
This trigger also supports "repeatCount" feature to end the trigger fire time after a certain number of count is reached. Just as the SimpleTrigger, setting repeatCount=0 means trigger will fire once only! Setting any positive count then the trigger will repeat count + 1 times. Unlike SimpleTrigger, the default value of repeatCount of this trigger is set to REPEAT_INDEFINITELY instead of 0 though.
- Since:
- 2.1.0
- Author:
- James House, Zemian Deng <[email protected]>
- See Also:
DailyTimeIntervalTrigger,DailyTimeIntervalScheduleBuilder, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.quartz.Trigger
Trigger.CompletedExecutionInstruction, Trigger.TriggerState, Trigger.TriggerTimeComparator
-
-
Field Summary
-
Fields inherited from interface org.quartz.DailyTimeIntervalTrigger
MISFIRE_INSTRUCTION_DO_NOTHING, MISFIRE_INSTRUCTION_FIRE_ONCE_NOW, REPEAT_INDEFINITELY
-
Fields inherited from interface org.quartz.Trigger
DEFAULT_PRIORITY, MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY, MISFIRE_INSTRUCTION_SMART_POLICY
-
-
Constructor Summary
Constructors Constructor Description DailyTimeIntervalTriggerImpl()Create aDailyTimeIntervalTriggerwith no settings.DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, java.lang.String jobName, java.lang.String jobGroup, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create aDailyTimeIntervalTriggerthat will occur at the given time, fire the identifiedJoband repeat at the given interval until the given end time.DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create aDailyTimeIntervalTriggerthat will occur at the given time, and repeat at the given interval until the given end time.DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create aDailyTimeIntervalTriggerthat will occur immediately, and repeat at the given interval.DailyTimeIntervalTriggerImpl(java.lang.String name, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create aDailyTimeIntervalTriggerthat will occur at the given time, and repeat at the given interval until the given end time.DailyTimeIntervalTriggerImpl(java.lang.String name, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create aDailyTimeIntervalTriggerthat will occur immediately, and repeat at the given interval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DatecomputeFirstFireTime(Calendar calendar)Called by the scheduler at the time aTriggeris first added to the scheduler, in order to have theTriggercompute its first fire time, based on any associated calendar.java.util.Set<java.lang.Integer>getDaysOfWeek()The days of the week upon which to fire.java.util.DategetEndTime()Get the time at which theDailyTimeIntervalTriggershould quit repeating.TimeOfDaygetEndTimeOfDay()The time of day to complete firing at the given interval.java.util.DategetFinalFireTime()Returns the final time at which theDailyTimeIntervalTriggerwill fire, if there is no end time set, null will be returned.java.util.DategetFireTimeAfter(java.util.Date afterTime)Returns the next time at which theDailyTimeIntervalTriggerwill fire, after the given time.java.util.DategetNextFireTime()Returns the next time at which theTriggeris scheduled to fire.java.util.DategetPreviousFireTime()Returns the previous time at which theDailyTimeIntervalTriggerfired.intgetRepeatCount()Get the number of times for interval this trigger should repeat, after which it will be automatically deleted.intgetRepeatInterval()Get the time interval that will be added to theDateIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.DateBuilder.IntervalUnitgetRepeatIntervalUnit()Get the interval unit - the time unit on with the interval applies.ScheduleBuilder<DailyTimeIntervalTrigger>getScheduleBuilder()Get aScheduleBuilderthat is configured to produce a schedule identical to this trigger's schedule.java.util.DategetStartTime()Get the time at which theDailyTimeIntervalTriggershould occur.TimeOfDaygetStartTimeOfDay()The time of day to start firing at the given interval.intgetTimesTriggered()Get the number of times theDateIntervalTriggerhas already fired.booleanhasAdditionalProperties()This trigger has no additional properties besides what's defined in this class.booleanmayFireAgain()Determines whether or not theDailyTimeIntervalTriggerwill occur again.voidsetDaysOfWeek(java.util.Set<java.lang.Integer> daysOfWeek)voidsetEndTime(java.util.Date endTime)Set the time at which theDailyTimeIntervalTriggershould quit repeating (and be automatically deleted).voidsetEndTimeOfDay(TimeOfDay endTimeOfDay)voidsetNextFireTime(java.util.Date nextFireTime)Set the next time at which theDailyTimeIntervalTriggershould fire.voidsetPreviousFireTime(java.util.Date previousFireTime)Set the previous time at which theDailyTimeIntervalTriggerfired.voidsetRepeatCount(int repeatCount)voidsetRepeatInterval(int repeatInterval)set the time interval that will be added to theDailyTimeIntervalTrigger's fire time (in the set repeat interval unit) in order to calculate the time of the next trigger repeat.voidsetRepeatIntervalUnit(DateBuilder.IntervalUnit intervalUnit)Set the interval unit - the time unit on with the interval applies.voidsetStartTime(java.util.Date startTime)Set the time at which theDailyTimeIntervalTriggershould occur.voidsetStartTimeOfDay(TimeOfDay startTimeOfDay)voidsetTimesTriggered(int timesTriggered)Set the number of times theDailyTimeIntervalTriggerhas already fired.voidtriggered(Calendar calendar)Called when thehas decided to 'fire' the trigger (execute the associatedSchedulerJob), in order to give theTriggera chance to update itself for its next triggering (if any).voidupdateAfterMisfire(Calendar cal)Updates theDailyTimeIntervalTrigger's state based on the MISFIRE_INSTRUCTION_XXX that was selected when theDailyTimeIntervalTriggerwas created.voidupdateWithNewCalendar(Calendar calendar, long misfireThreshold)This method should not be used by the Quartz client.voidvalidate()Validates whether the properties of theJobDetailare valid for submission into aScheduler.protected booleanvalidateMisfireInstruction(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 org.quartz.DailyTimeIntervalTrigger
getTriggerBuilder
-
Methods inherited from interface org.quartz.Trigger
compareTo, equals, getCalendarName, getDescription, getJobDataMap, getJobKey, getKey, getMisfireInstruction, getPriority
-
-
-
-
Constructor Detail
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl()
Create a
DailyTimeIntervalTriggerwith no settings.
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl(java.lang.String name, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create a
DailyTimeIntervalTriggerthat will occur immediately, and repeat at the given interval.- Parameters:
startTimeOfDay- TheTimeOfDaythat the repeating should begin occurring.endTimeOfDay- TheTimeOfDaythat the repeating should stop occurring.intervalUnit- The repeat interval unit. The only intervals that are valid for this type of trigger areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.- Throws:
java.lang.IllegalArgumentException- if an invalid IntervalUnit is given, or the repeat interval is zero or less.
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create a
DailyTimeIntervalTriggerthat will occur immediately, and repeat at the given interval.- Parameters:
startTimeOfDay- TheTimeOfDaythat the repeating should begin occurring.endTimeOfDay- TheTimeOfDaythat the repeating should stop occurring.intervalUnit- The repeat interval unit. The only intervals that are valid for this type of trigger areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.- Throws:
java.lang.IllegalArgumentException- if an invalid IntervalUnit is given, or the repeat interval is zero or less.
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl(java.lang.String name, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create a
DailyTimeIntervalTriggerthat will occur at the given time, and repeat at the given interval until the given end time.- Parameters:
startTime- ADateset to the time for theTriggerto fire.endTime- ADateset to the time for theTriggerto quit repeat firing.startTimeOfDay- TheTimeOfDaythat the repeating should begin occurring.endTimeOfDay- TheTimeOfDaythat the repeating should stop occurring.intervalUnit- The repeat interval unit. The only intervals that are valid for this type of trigger areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.repeatInterval- The number of milliseconds to pause between the repeat firing.- Throws:
java.lang.IllegalArgumentException- if an invalid IntervalUnit is given, or the repeat interval is zero or less.
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create a
DailyTimeIntervalTriggerthat will occur at the given time, and repeat at the given interval until the given end time.- Parameters:
startTime- ADateset to the time for theTriggerto fire.endTime- ADateset to the time for theTriggerto quit repeat firing.startTimeOfDay- TheTimeOfDaythat the repeating should begin occurring.endTimeOfDay- TheTimeOfDaythat the repeating should stop occurring.intervalUnit- The repeat interval unit. The only intervals that are valid for this type of trigger areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.repeatInterval- The number of milliseconds to pause between the repeat firing.- Throws:
java.lang.IllegalArgumentException- if an invalid IntervalUnit is given, or the repeat interval is zero or less.
-
DailyTimeIntervalTriggerImpl
public DailyTimeIntervalTriggerImpl(java.lang.String name, java.lang.String group, java.lang.String jobName, java.lang.String jobGroup, java.util.Date startTime, java.util.Date endTime, TimeOfDay startTimeOfDay, TimeOfDay endTimeOfDay, DateBuilder.IntervalUnit intervalUnit, int repeatInterval)Create a
DailyTimeIntervalTriggerthat will occur at the given time, fire the identifiedJoband repeat at the given interval until the given end time.- Parameters:
startTime- ADateset to the time for theTriggerto fire.endTime- ADateset to the time for theTriggerto quit repeat firing.startTimeOfDay- TheTimeOfDaythat the repeating should begin occurring.endTimeOfDay- TheTimeOfDaythat the repeating should stop occurring.intervalUnit- The repeat interval unit. The only intervals that are valid for this type of trigger areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.repeatInterval- The number of milliseconds to pause between the repeat firing.- Throws:
java.lang.IllegalArgumentException- if an invalid IntervalUnit is given, or the repeat interval is zero or less.
-
-
Method Detail
-
getStartTime
public java.util.Date getStartTime()
Get the time at which the
DailyTimeIntervalTriggershould occur. It defaults to the getStartTimeOfDay of current day.- Specified by:
getStartTimein interfaceTrigger
-
setStartTime
public void setStartTime(java.util.Date startTime)
Set the time at which the
DailyTimeIntervalTriggershould occur.- Specified by:
setStartTimein interfaceMutableTrigger- Throws:
java.lang.IllegalArgumentException- if startTime isnull.
-
getEndTime
public java.util.Date getEndTime()
Get the time at which the
DailyTimeIntervalTriggershould quit repeating.- Specified by:
getEndTimein interfaceTrigger- See Also:
getFinalFireTime()
-
setEndTime
public void setEndTime(java.util.Date endTime)
Set the time at which the
DailyTimeIntervalTriggershould quit repeating (and be automatically deleted).- Specified by:
setEndTimein interfaceMutableTrigger- Throws:
java.lang.IllegalArgumentException- if endTime is before start time.- See Also:
TriggerUtils.computeEndTimeToAllowParticularNumberOfFirings(org.quartz.spi.OperableTrigger, org.quartz.Calendar, int)
-
getRepeatIntervalUnit
public DateBuilder.IntervalUnit getRepeatIntervalUnit()
Description copied from interface:DailyTimeIntervalTriggerGet 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, andDateBuilder.IntervalUnit.HOUR.- Specified by:
getRepeatIntervalUnitin interfaceDailyTimeIntervalTrigger
-
setRepeatIntervalUnit
public void setRepeatIntervalUnit(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 areDateBuilder.IntervalUnit.SECOND,DateBuilder.IntervalUnit.MINUTE, andDateBuilder.IntervalUnit.HOUR.
-
getRepeatInterval
public int getRepeatInterval()
Description copied from interface:DailyTimeIntervalTriggerGet 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:
getRepeatIntervalin interfaceDailyTimeIntervalTrigger
-
setRepeatInterval
public void setRepeatInterval(int repeatInterval)
set 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:
java.lang.IllegalArgumentException- if repeatInterval is < 1
-
getTimesTriggered
public int getTimesTriggered()
Description copied from interface:DailyTimeIntervalTriggerGet the number of times the
DateIntervalTriggerhas already fired.- Specified by:
getTimesTriggeredin interfaceDailyTimeIntervalTrigger
-
setTimesTriggered
public void setTimesTriggered(int timesTriggered)
Set the number of times the
DailyTimeIntervalTriggerhas already fired.
-
validateMisfireInstruction
protected boolean validateMisfireInstruction(int misfireInstruction)
- Specified by:
validateMisfireInstructionin classAbstractTrigger<DailyTimeIntervalTrigger>
-
updateAfterMisfire
public void updateAfterMisfire(Calendar cal)
Updates the
DailyTimeIntervalTrigger's state based on the MISFIRE_INSTRUCTION_XXX that was selected when theDailyTimeIntervalTriggerwas 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:
updateAfterMisfirein interfaceOperableTrigger
- The instruction will be interpreted as
-
triggered
public void triggered(Calendar calendar)
Called when the
has decided to 'fire' the trigger (execute the associatedSchedulerJob), in order to give theTriggera chance to update itself for its next triggering (if any).- Specified by:
triggeredin interfaceOperableTrigger- See Also:
AbstractTrigger.executionComplete(JobExecutionContext, JobExecutionException)
-
updateWithNewCalendar
public void updateWithNewCalendar(Calendar calendar, long misfireThreshold)
Description copied from interface:OperableTriggerThis method should not be used by the Quartz client.
To be implemented by the concrete class.
The implementation should update the
Trigger's state based on the given new version of the associatedCalendar(the state should be updated so that it's next fire time is appropriate given the Calendar's new settings).- Specified by:
updateWithNewCalendarin interfaceOperableTrigger- See Also:
OperableTrigger.updateWithNewCalendar(org.quartz.Calendar, long)
-
computeFirstFireTime
public java.util.Date computeFirstFireTime(Calendar calendar)
Called by the scheduler at the time a
Triggeris first added to the scheduler, in order to have theTriggercompute its first fire time, based on any associated calendar.After this method has been called,
getNextFireTime()should return a valid answer.- Specified by:
computeFirstFireTimein interfaceOperableTrigger- Returns:
- the first time at which the
Triggerwill be fired by the scheduler, which is also the same valuegetNextFireTime()will return (until after the first firing of theTrigger).
-
getNextFireTime
public java.util.Date getNextFireTime()
Returns the next time at which the
Triggeris scheduled to fire. If the trigger will not fire again,nullwill 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
Triggerhas been added to the scheduler.- Specified by:
getNextFireTimein interfaceTrigger- See Also:
TriggerUtils.computeFireTimesBetween(org.quartz.spi.OperableTrigger, Calendar, java.util.Date, java.util.Date)
-
getPreviousFireTime
public java.util.Date getPreviousFireTime()
Returns the previous time at which the
DailyTimeIntervalTriggerfired. If the trigger has not yet fired,nullwill be returned.- Specified by:
getPreviousFireTimein interfaceTrigger
-
setNextFireTime
public void setNextFireTime(java.util.Date nextFireTime)
Set the next time at which the
DailyTimeIntervalTriggershould fire.This method should not be invoked by client code.
- Specified by:
setNextFireTimein interfaceOperableTrigger
-
setPreviousFireTime
public void setPreviousFireTime(java.util.Date previousFireTime)
Set the previous time at which the
DailyTimeIntervalTriggerfired.This method should not be invoked by client code.
- Specified by:
setPreviousFireTimein interfaceOperableTrigger
-
getFireTimeAfter
public java.util.Date getFireTimeAfter(java.util.Date afterTime)
Returns the next time at which the
DailyTimeIntervalTriggerwill fire, after the given time. If the trigger will not fire after the given time,nullwill be returned.- Specified by:
getFireTimeAfterin interfaceTrigger
-
getFinalFireTime
public java.util.Date getFinalFireTime()
Returns the final time at which the
DailyTimeIntervalTriggerwill fire, if there is no end time set, null will be returned.Note that the return time may be in the past.
- Specified by:
getFinalFireTimein interfaceTrigger
-
mayFireAgain
public boolean mayFireAgain()
Determines whether or not the
DailyTimeIntervalTriggerwill occur again.- Specified by:
mayFireAgainin interfaceTrigger
-
validate
public void validate() throws SchedulerExceptionValidates whether the properties of the
JobDetailare valid for submission into aScheduler.- Specified by:
validatein interfaceOperableTrigger- Overrides:
validatein classAbstractTrigger<DailyTimeIntervalTrigger>- Throws:
java.lang.IllegalStateException- if a required property (such as Name, Group, Class) is not set.SchedulerException
-
getDaysOfWeek
public java.util.Set<java.lang.Integer> getDaysOfWeek()
The days of the week upon which to fire.- Specified by:
getDaysOfWeekin interfaceDailyTimeIntervalTrigger- Returns:
- a Set containing the integers representing the days of the week, per the values 1-7 as defined by
Calendar.SUNDAY-Calendar.SATURDAY.
-
setDaysOfWeek
public void setDaysOfWeek(java.util.Set<java.lang.Integer> daysOfWeek)
-
getStartTimeOfDay
public TimeOfDay getStartTimeOfDay()
The time of day to start firing at the given interval.- Specified by:
getStartTimeOfDayin interfaceDailyTimeIntervalTrigger
-
setStartTimeOfDay
public void setStartTimeOfDay(TimeOfDay startTimeOfDay)
-
getEndTimeOfDay
public TimeOfDay getEndTimeOfDay()
The time of day to complete firing at the given interval.- Specified by:
getEndTimeOfDayin interfaceDailyTimeIntervalTrigger
-
setEndTimeOfDay
public void setEndTimeOfDay(TimeOfDay endTimeOfDay)
-
getScheduleBuilder
public ScheduleBuilder<DailyTimeIntervalTrigger> getScheduleBuilder()
Get aScheduleBuilderthat is configured to produce a schedule identical to this trigger's schedule.- Specified by:
getScheduleBuilderin interfaceTrigger- Specified by:
getScheduleBuilderin classAbstractTrigger<DailyTimeIntervalTrigger>- See Also:
AbstractTrigger.getTriggerBuilder()
-
hasAdditionalProperties
public boolean hasAdditionalProperties()
This trigger has no additional properties besides what's defined in this class.- Specified by:
hasAdditionalPropertiesin interfaceCoreTrigger
-
getRepeatCount
public int getRepeatCount()
Description copied from interface:DailyTimeIntervalTriggerGet the number of times for interval this trigger should repeat, after which it will be automatically deleted.
- Specified by:
getRepeatCountin interfaceDailyTimeIntervalTrigger- See Also:
DailyTimeIntervalTrigger.REPEAT_INDEFINITELY
-
setRepeatCount
public void setRepeatCount(int repeatCount)
-
-