Class DateTriggerConfig
- Direct Known Subclasses:
DailyConfig,MonthlyNthDayConfig,MonthlyNthDayOfWeekConfig,WeeklyConfig,YearlyAtDateConfig,YearlyNthDayOfWeekConfig
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf a specific trigger time was set this method returns the set time.Returns the type of triggering per day.Defines the method with which is decided if the trigger is done.Defines the first time the trigger should fire.getId()Defines the last execution time.Defines the number of executions.Defines the end time of the interval within which the trigger fires.Defines the period with which the triggers fires.Defines the start time of the interval within which the trigger fires.Defines the period's unit with which the trigger fires.voidvoidSets a specific trigger time.voidsetDailyRepeatType(DailyRepeatType dailyRepeatType) Sets the type with which triggering occurs per day.voidsetEndType(EndTypes endType) Defines the method with which is decided if the trigger is done.voidsetFirstExecution(Date firstExecution) Defines the first time the trigger should fire.voidvoidsetLastExecution(Date lastExecution) Defines the last execution time.voidsetNumberOfExecutions(Integer numberOfExecutions) Defines the number of executions.voidsetTimeRangeEnd(Time timeRangeEnd) Defines the end time of the interval within which the trigger fires.voidsetTimeRangeInterval(Integer timeRangeInterval) Defines the period with which the triggers fires.voidsetTimeRangeStart(Time timeRangeStart) Defines the start time of the interval within which the trigger fires.voidsetTimeRangeUnit(TimeUnits timeRangeUnit) Defines the period's unit with which the trigger fires.voidsetVersion(Long version)
-
Constructor Details
-
DateTriggerConfig
public DateTriggerConfig()
-
-
Method Details
-
getVersion
-
setVersion
-
getId
-
setId
-
getFirstExecution
Defines the first time the trigger should fire. -
setFirstExecution
Defines the first time the trigger should fire.- Parameters:
firstExecution-
-
getEndType
Defines the method with which is decided if the trigger is done. -
setEndType
Defines the method with which is decided if the trigger is done.- Parameters:
endType-
-
getLastExecution
Defines the last execution time.Only applies if
EndTypesis set toEndTypes.DATE -
setLastExecution
Defines the last execution time.Only applies if
EndTypesis set toEndTypes.DATE- Parameters:
lastExecution-
-
getNumberOfExecutions
Defines the number of executions.Only applies if
EndTypesis set toEndTypes.COUNT -
setNumberOfExecutions
Defines the number of executions.Only applies if
EndTypesis set toEndTypes.COUNT- Parameters:
numberOfExecutions-
-
getAtTime
If a specific trigger time was set this method returns the set time.Only specified if
DailyRepeatTypeis set toDailyRepeatType.ONCE- See Also:
-
setAtTime
Sets a specific trigger time.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVAL- Parameters:
atTime-- See Also:
-
setAtTime
-
getDailyRepeatType
Returns the type of triggering per day. -
setDailyRepeatType
Sets the type with which triggering occurs per day.- Parameters:
dailyRepeatType-
-
getTimeRangeStart
Defines the start time of the interval within which the trigger fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVAL- See Also:
-
setTimeRangeStart
Defines the start time of the interval within which the trigger fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVAL- Parameters:
timeRangeStart-- See Also:
-
getTimeRangeEnd
Defines the end time of the interval within which the trigger fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVAL- See Also:
-
setTimeRangeEnd
Defines the end time of the interval within which the trigger fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVAL- Parameters:
timeRangeEnd-- See Also:
-
getTimeRangeInterval
Defines the period with which the triggers fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVALThe trigger fires every 5 minutes for two hours between 2pm and 4pm.
-
setTimeRangeInterval
Defines the period with which the triggers fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVALThe trigger fires every 5 minutes for two hours between 2pm and 4pm.
- Parameters:
timeRangeInterval-- See Also:
-
getTimeRangeUnit
Defines the period's unit with which the trigger fires. Defines the period with which the triggers fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVALThe trigger fires every 5 minutes for two hours between 2pm and 4pm.
- See Also:
-
setTimeRangeUnit
Defines the period's unit with which the trigger fires. Defines the period with which the triggers fires.Only specified if
DailyRepeatTypeis set toDailyRepeatType.BOUNDED_INTERVALThe trigger fires every 5 minutes for two hours between 2pm and 4pm.
- Parameters:
timeRangeUnit-- See Also:
-