Package io.quarkus.scheduler
Interface Trigger
-
public interface TriggerTrigger is bound to a scheduled task.- See Also:
Scheduled
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()InstantgetNextFireTime()InstantgetPreviousFireTime()booleanisOverdue()The grace period is configurable withScheduled.overdueGracePeriod().
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the identifier
- See Also:
Scheduled.identity()
-
getNextFireTime
Instant getNextFireTime()
- Returns:
- the next time at which the trigger is scheduled to fire, or
nullif it will not fire again
-
getPreviousFireTime
Instant getPreviousFireTime()
- Returns:
- the previous time at which the trigger fired, or
nullif it has not fired yet
-
isOverdue
boolean isOverdue()
The grace period is configurable withScheduled.overdueGracePeriod().Skipped executions are not considered as overdue.
- Returns:
falseif the last execution took place between the expected execution time and the end of the grace period,trueotherwise- See Also:
Scheduled.overdueGracePeriod()
-
-