Interface Trigger
- All Known Subinterfaces:
CronTrigger
- All Known Implementing Classes:
OneShotTrigger,UnixCronTrigger
public interface Trigger
- Author:
- Matthieu Chaffotte
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSpecify what to do when some job were not triggered in time. -
Method Summary
Modifier and TypeMethodDescriptionTell the scheduler how to handle jobs that were not executed in time.getName()Gets the name of the triggerintThe trigger of the highest priority will be executed first.Returns when the trigger must start
-
Method Details
-
getName
String getName()Gets the name of the trigger- Returns:
- the name of the trigger
- Since:
- 6.0
-
getStartDate
Date getStartDate()Returns when the trigger must start- Returns:
- a date when the trigger must start
- Since:
- 6.0
-
getPriority
int getPriority()The trigger of the highest priority will be executed first.- Returns:
- the trigger's priority
- Since:
- 6.0
-
getMisfireHandlingPolicy
Trigger.MisfireRestartPolicy getMisfireHandlingPolicy()Tell the scheduler how to handle jobs that were not executed in time.- Returns:
- the MisfireHandlingPolicy for this trigger
-