Package io.quarkus.scheduler.runtime
Class SimpleScheduler.SimpleTrigger
- java.lang.Object
-
- io.quarkus.scheduler.runtime.SimpleScheduler.SimpleTrigger
-
- All Implemented Interfaces:
Trigger
- Direct Known Subclasses:
SimpleScheduler.CronTrigger
,SimpleScheduler.IntervalTrigger
- Enclosing class:
- SimpleScheduler
abstract static class SimpleScheduler.SimpleTrigger extends Object implements Trigger
-
-
Field Summary
Fields Modifier and Type Field Description protected ZonedDateTime
start
-
Constructor Summary
Constructors Constructor Description SimpleTrigger(String id, ZonedDateTime start)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract ZonedDateTime
evaluate(ZonedDateTime now)
String
getId()
boolean
isRunning()
void
setRunning(boolean running)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.scheduler.Trigger
getNextFireTime, getPreviousFireTime
-
-
-
-
Field Detail
-
start
protected final ZonedDateTime start
-
-
Constructor Detail
-
SimpleTrigger
public SimpleTrigger(String id, ZonedDateTime start)
-
-
Method Detail
-
evaluate
abstract ZonedDateTime evaluate(ZonedDateTime now)
- Parameters:
now
-- Returns:
- the scheduled time if fired,
null
otherwise
-
isRunning
public boolean isRunning()
-
setRunning
public void setRunning(boolean running)
-
-