Package io.quarkus.scheduler
Class Scheduled.ApplicationNotRunning
- java.lang.Object
-
- io.quarkus.scheduler.Scheduled.ApplicationNotRunning
-
- All Implemented Interfaces:
Scheduled.SkipPredicate
- Enclosing class:
- Scheduled
@Singleton public static class Scheduled.ApplicationNotRunning extends Object implements Scheduled.SkipPredicate
Execution is skipped if the application is not running (either not started or already shutdown).
-
-
Constructor Summary
Constructors Constructor Description ApplicationNotRunning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidshutdown(io.quarkus.runtime.ShutdownEvent event)(package private) voidstarted(io.quarkus.runtime.StartupEvent event)booleantest(ScheduledExecution execution)
-
-
-
Method Detail
-
started
void started(@Observes io.quarkus.runtime.StartupEvent event)
-
shutdown
void shutdown(@Observes io.quarkus.runtime.ShutdownEvent event)
-
test
public boolean test(ScheduledExecution execution)
- Specified by:
testin interfaceScheduled.SkipPredicate- Returns:
trueif the given execution should be skipped,falseotherwise
-
-