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 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

      public boolean test(ScheduledExecution execution)
      Specified by:
      test in interface Scheduled.SkipPredicate
      Returns:
      true if the given execution should be skipped, false otherwise