Package io.quarkus.scheduler
Interface Scheduler
-
- All Known Implementing Classes:
SimpleScheduler
public interface SchedulerThe container provides a built-in bean with bean typeSchedulerand qualifierDefault.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPaused(String identity)Identity must not be null andfalseis returned for non-existent identity.booleanisRunning()voidpause()Pause the scheduler.voidpause(String identity)Pause a specific job.voidresume()Resume the scheduler.voidresume(String identity)Resume a specific job.
-
-
-
Method Detail
-
pause
void pause()
Pause the scheduler. No triggers are fired.
-
pause
void pause(String identity)
Pause a specific job. Identity must not be null and non-existent identity results in no-op.- Parameters:
identity-- See Also:
Scheduled.identity()
-
resume
void resume()
Resume the scheduler. Triggers can be fired again.
-
resume
void resume(String identity)
Resume a specific job. Identity must not be null and non-existent identity results in no-op.- Parameters:
identity-- See Also:
Scheduled.identity()
-
isPaused
boolean isPaused(String identity)
Identity must not be null andfalseis returned for non-existent identity.- Parameters:
identity-- Returns:
trueif the job with the given identity is paused,falseotherwise- See Also:
Scheduled.identity()
-
isRunning
boolean isRunning()
- Returns:
trueif a scheduler is running the triggers are fired and jobs are executed,falseotherwise
-
-