Package io.quarkus.scheduler.runtime
Class SimpleScheduler.IntervalTrigger
- java.lang.Object
-
- io.quarkus.scheduler.runtime.SimpleScheduler.SimpleTrigger
-
- io.quarkus.scheduler.runtime.SimpleScheduler.IntervalTrigger
-
- All Implemented Interfaces:
io.quarkus.scheduler.Trigger
- Enclosing class:
- SimpleScheduler
static class SimpleScheduler.IntervalTrigger extends SimpleScheduler.SimpleTrigger
-
-
Field Summary
-
Fields inherited from class io.quarkus.scheduler.runtime.SimpleScheduler.SimpleTrigger
id, lastFireTime, methodDescription, start
-
-
Constructor Summary
Constructors Constructor Description IntervalTrigger(String id, ZonedDateTime start, long interval, Duration gracePeriod, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ZonedDateTime
evaluate(ZonedDateTime now)
Instant
getNextFireTime()
boolean
isOverdue()
String
toString()
-
Methods inherited from class io.quarkus.scheduler.runtime.SimpleScheduler.SimpleTrigger
getId, getMethodDescription, getPreviousFireTime, isRunning, setRunning
-
-
-
-
Constructor Detail
-
IntervalTrigger
IntervalTrigger(String id, ZonedDateTime start, long interval, Duration gracePeriod, String description)
-
-
Method Detail
-
evaluate
ZonedDateTime evaluate(ZonedDateTime now)
- Specified by:
evaluate
in classSimpleScheduler.SimpleTrigger
- Parameters:
now
- The current date-time in the default time zone- Returns:
- the scheduled time if fired,
null
otherwise
-
getNextFireTime
public Instant getNextFireTime()
-
isOverdue
public boolean isOverdue()
-
-