Interface Trigger
-
- All Known Subinterfaces:
CronTrigger
- All Known Implementing Classes:
OneShotTrigger,UnixCronTrigger
public interface Trigger- Author:
- Matthieu Chaffotte
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTrigger.MisfireRestartPolicySpecify what to do when some job were not triggered in time.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Trigger.MisfireRestartPolicygetMisfireHandlingPolicy()Tell the scheduler how to handle jobs that were not executed in time.java.lang.StringgetName()Gets the name of the triggerintgetPriority()The trigger of the highest priority will be executed first.java.util.DategetStartDate()Returns when the trigger must start
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the trigger- Returns:
- the name of the trigger
- Since:
- 6.0
-
getStartDate
java.util.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
-
-