Package io.quarkus.scheduler.runtime
Class SimpleScheduler
- java.lang.Object
-
- io.quarkus.scheduler.runtime.SimpleScheduler
-
- All Implemented Interfaces:
io.quarkus.scheduler.Scheduler
@Typed(io.quarkus.scheduler.Scheduler.class) @Singleton public class SimpleScheduler extends Object implements io.quarkus.scheduler.Scheduler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SimpleScheduler.CronTrigger
(package private) static class
SimpleScheduler.IntervalTrigger
(package private) static class
SimpleScheduler.ScheduledTask
(package private) static class
SimpleScheduler.SimpleScheduledExecution
(package private) static class
SimpleScheduler.SimpleTrigger
-
Constructor Summary
Constructors Constructor Description SimpleScheduler(io.quarkus.scheduler.common.runtime.SchedulerContext context, SchedulerRuntimeConfig schedulerRuntimeConfig, javax.enterprise.event.Event<io.quarkus.scheduler.SkippedExecution> skippedExecutionEvent, javax.enterprise.event.Event<io.quarkus.scheduler.SuccessfulExecution> successExecutionEvent, javax.enterprise.event.Event<io.quarkus.scheduler.FailedExecution> failedExecutionEvent, io.vertx.core.Vertx vertx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
checkTriggers()
(package private) Optional<SimpleScheduler.SimpleTrigger>
createTrigger(String invokerClass, com.cronutils.parser.CronParser parser, io.quarkus.scheduler.Scheduled scheduled, int nameSequence, Duration defaultGracePeriod)
io.quarkus.scheduler.Trigger
getScheduledJob(String identity)
List<io.quarkus.scheduler.Trigger>
getScheduledJobs()
boolean
isPaused(String identity)
boolean
isRunning()
void
pause()
void
pause(String identity)
void
resume()
void
resume(String identity)
(package private) void
start(io.quarkus.runtime.StartupEvent event)
(package private) void
stop()
-
-
-
Constructor Detail
-
SimpleScheduler
public SimpleScheduler(io.quarkus.scheduler.common.runtime.SchedulerContext context, SchedulerRuntimeConfig schedulerRuntimeConfig, javax.enterprise.event.Event<io.quarkus.scheduler.SkippedExecution> skippedExecutionEvent, javax.enterprise.event.Event<io.quarkus.scheduler.SuccessfulExecution> successExecutionEvent, javax.enterprise.event.Event<io.quarkus.scheduler.FailedExecution> failedExecutionEvent, io.vertx.core.Vertx vertx)
-
-
Method Detail
-
start
void start(@Observes @Priority(0) io.quarkus.runtime.StartupEvent event)
-
stop
@PreDestroy void stop()
-
checkTriggers
void checkTriggers()
-
pause
public void pause()
- Specified by:
pause
in interfaceio.quarkus.scheduler.Scheduler
-
pause
public void pause(String identity)
- Specified by:
pause
in interfaceio.quarkus.scheduler.Scheduler
-
isPaused
public boolean isPaused(String identity)
- Specified by:
isPaused
in interfaceio.quarkus.scheduler.Scheduler
-
resume
public void resume()
- Specified by:
resume
in interfaceio.quarkus.scheduler.Scheduler
-
resume
public void resume(String identity)
- Specified by:
resume
in interfaceio.quarkus.scheduler.Scheduler
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interfaceio.quarkus.scheduler.Scheduler
-
createTrigger
Optional<SimpleScheduler.SimpleTrigger> createTrigger(String invokerClass, com.cronutils.parser.CronParser parser, io.quarkus.scheduler.Scheduled scheduled, int nameSequence, Duration defaultGracePeriod)
-
getScheduledJobs
public List<io.quarkus.scheduler.Trigger> getScheduledJobs()
- Specified by:
getScheduledJobs
in interfaceio.quarkus.scheduler.Scheduler
-
getScheduledJob
public io.quarkus.scheduler.Trigger getScheduledJob(String identity)
- Specified by:
getScheduledJob
in interfaceio.quarkus.scheduler.Scheduler
-
-