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
lastFireTime
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()
(package private) boolean
isRunning()
(package private) 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, isOverdue
-
-
-
-
Field Detail
-
start
protected final ZonedDateTime start
-
lastFireTime
protected volatile ZonedDateTime lastFireTime
-
-
Constructor Detail
-
SimpleTrigger
SimpleTrigger(String id, ZonedDateTime start)
-
-
Method Detail
-
evaluate
abstract ZonedDateTime evaluate(ZonedDateTime now)
- Parameters:
now
-- Returns:
- the scheduled time if fired,
null
otherwise
-
getId
public String getId()
- Specified by:
getId
in interfaceTrigger
- Returns:
- the identifier
- See Also:
Scheduled.identity()
-
isRunning
boolean isRunning()
-
setRunning
void setRunning(boolean running)
-
-