Class SimpleScheduler

    • Method Detail

      • start

        void start​(@Observes @Priority(0)
                   io.quarkus.runtime.StartupEvent event)
      • stop

        @PreDestroy
        void stop()
      • checkTriggers

        void checkTriggers()
      • pause

        public void pause()
        Description copied from interface: Scheduler
        Pause the scheduler. No triggers are fired.
        Specified by:
        pause in interface Scheduler
      • pause

        public void pause​(String identity)
        Description copied from interface: Scheduler
        Pause a specific job. Identity must not be null and non-existent identity results in no-op.
        Specified by:
        pause in interface Scheduler
        See Also:
        Scheduled.identity()
      • isPaused

        public boolean isPaused​(String identity)
        Description copied from interface: Scheduler
        Identity must not be null and false is returned for non-existent identity.
        Specified by:
        isPaused in interface Scheduler
        Returns:
        true if the job with the given identity is paused, false otherwise
        See Also:
        Scheduled.identity()
      • resume

        public void resume()
        Description copied from interface: Scheduler
        Resume the scheduler. Triggers can be fired again.
        Specified by:
        resume in interface Scheduler
      • resume

        public void resume​(String identity)
        Description copied from interface: Scheduler
        Resume a specific job. Identity must not be null and non-existent identity results in no-op.
        Specified by:
        resume in interface Scheduler
        See Also:
        Scheduled.identity()
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface Scheduler
        Returns:
        true if a scheduler is running the triggers are fired and jobs are executed, false otherwise