Package org.ametys.core.schedule
Enum Runnable.MisfirePolicy
- java.lang.Object
-
- java.lang.Enum<Runnable.MisfirePolicy>
-
- org.ametys.core.schedule.Runnable.MisfirePolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<Runnable.MisfirePolicy>
- Enclosing interface:
- Runnable
public static enum Runnable.MisfirePolicy extends Enum<Runnable.MisfirePolicy>
The possible misfire policies
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DO_NOTHING
The misfired triggers will never be fired and the next trigger to be fired will be the next one.FIRE_ONCE
Try to fire one of them as soon as it can.IGNORE
Ignore that there were misfired triggers, and try to fire them all as soon as it can.
-
Constructor Summary
Constructors Modifier Constructor Description private
MisfirePolicy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Runnable.MisfirePolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Runnable.MisfirePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final Runnable.MisfirePolicy 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
public static final Runnable.MisfirePolicy FIRE_ONCE
Try to fire one of them as soon as it can. SeeCronScheduleBuilder.withMisfireHandlingInstructionFireAndProceed()
andCronTrigger.MISFIRE_INSTRUCTION_FIRE_ONCE_NOW
-
DO_NOTHING
public static final Runnable.MisfirePolicy 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
-
-
Constructor Detail
-
MisfirePolicy
private MisfirePolicy()
-
-
Method Detail
-
values
public static Runnable.MisfirePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Runnable.MisfirePolicy c : Runnable.MisfirePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Runnable.MisfirePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-