public interface SchedulerControl
isSchedulerEnabled()
()) and on a per-job basis
(vetoJobExecution(Class)
.
The interface is meant to be implemented by a CDI bean.Modifier and Type | Method and Description |
---|---|
default boolean |
isSchedulerEnabled()
Control whether or not the scheduler should be started.
|
default boolean |
vetoJobExecution(Class<?> jobClass)
Invoked each time a job is triggered, this controls whether the given job shall be started or not.
|
default boolean isSchedulerEnabled()
true
the scheduler will be started, else not.default boolean vetoJobExecution(Class<?> jobClass)
isSchedulerEnabled()
).jobClass
- the job which was triggeredfalse
the job will be executed, else not.Copyright © 2020 The Apache Software Foundation. All rights reserved.