Package org.ametys.core.schedule
Enum Class Runnable.MisfirePolicy
- All Implemented Interfaces:
Serializable
,Comparable<Runnable.MisfirePolicy>
,java.lang.constant.Constable
- Enclosing interface:
- Runnable
The possible misfire policies
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe misfired triggers will never be fired and the next trigger to be fired will be the next one.Try to fire one of them as soon as it can.Ignore that there were misfired triggers, and try to fire them all as soon as it can. -
Method Summary
Modifier and TypeMethodDescriptionstatic Runnable.MisfirePolicy
Returns the enum constant of this class with the specified name.static Runnable.MisfirePolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Ignore that there were misfired triggers, and try to fire them all as soon as it can. SeeCronScheduleBuilder.withMisfireHandlingInstructionIgnoreMisfires()
andTrigger.MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY
-
FIRE_ONCE
Try to fire one of them as soon as it can. SeeCronScheduleBuilder.withMisfireHandlingInstructionFireAndProceed()
andCronTrigger.MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
-
DO_NOTHING
The misfired triggers will never be fired and the next trigger to be fired will be the next one. SeeCronScheduleBuilder.withMisfireHandlingInstructionDoNothing()
andCronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING
-
-
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
-