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 -
Method Summary
Modifier and TypeMethodDescription(package private) void
shutdown
(io.quarkus.runtime.ShutdownEvent event) (package private) void
started
(io.quarkus.runtime.StartupEvent event) boolean
test
(ScheduledExecution execution)
-
Constructor Details
-
ApplicationNotRunning
public ApplicationNotRunning()
-
-
Method Details
-
started
void started(@Observes io.quarkus.runtime.StartupEvent event) -
shutdown
void shutdown(@Observes io.quarkus.runtime.ShutdownEvent event) -
test
- Specified by:
test
in interfaceScheduled.SkipPredicate
- Returns:
true
if the given execution should be skipped,false
otherwise
-