Package io.quarkus.scheduler
Interface Scheduler
-
- All Known Implementing Classes:
SimpleScheduler
public interface SchedulerThe container provides a built-in bean with bean typeSchedulerand qualifierDefault.- Author:
- Martin Kouba
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRunning()voidpause()Pause the scheduler.voidpause(String identity)Pause a specific trigger.voidresume()Resume the scheduler.voidresume(String identity)Resume a specific trigger.
-
-
-
Method Detail
-
pause
void pause()
Pause the scheduler. No triggers are fired.
-
pause
void pause(String identity)
Pause a specific trigger. Identity must not be null and non-existent identity results in no-op.- Parameters:
identity- seeScheduled.identity()
-
resume
void resume()
Resume the scheduler. Triggers can be fired again.
-
resume
void resume(String identity)
Resume a specific trigger. Identity must not be null and non-existent identity results in no-op.- Parameters:
identity- seeScheduled.identity()
-
isRunning
boolean isRunning()
- Returns:
- if a scheduler is running the triggers are fired and jobs are executed.
-
-