Package io.quarkus.scheduler.runtime
Enum Class SchedulerRuntimeConfig.StartMode
java.lang.Object
java.lang.Enum<SchedulerRuntimeConfig.StartMode>
io.quarkus.scheduler.runtime.SchedulerRuntimeConfig.StartMode
- All Implemented Interfaces:
Serializable
,Comparable<SchedulerRuntimeConfig.StartMode>
,Constable
- Enclosing class:
- SchedulerRuntimeConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe scheduler will be started even if no scheduled business methods are found.Just like theFORCED
mode but the scheduler will not start triggering jobs untilScheduler.resume()
is called.The scheduler is not started unless aScheduled
business method is found. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SchedulerRuntimeConfig.StartMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
The scheduler is not started unless aScheduled
business method is found. -
FORCED
The scheduler will be started even if no scheduled business methods are found.This is necessary for "pure" programmatic scheduling.
-
HALTED
Just like theFORCED
mode but the scheduler will not start triggering jobs untilScheduler.resume()
is called.This can be useful to run some initialization logic that needs to be performed before the scheduler starts.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-