Package io.quarkus.scheduler
Interface Trigger
-
- All Known Implementing Classes:
SimpleScheduler.CronTrigger
,SimpleScheduler.IntervalTrigger
,SimpleScheduler.SimpleTrigger
public interface Trigger
Trigger is bound to a scheduled task.- See Also:
Scheduled
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getId()
Instant
getNextFireTime()
Instant
getPreviousFireTime()
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the identifier
-
getNextFireTime
Instant getNextFireTime()
- Returns:
- the next time at which the trigger is scheduled to fire, or
null
if it will not fire again
-
getPreviousFireTime
Instant getPreviousFireTime()
- Returns:
- the previous time at which the trigger fired, or
null
if it has not fired yet
-
-