Enum Class Runnable.MisfirePolicy

java.lang.Object
java.lang.Enum<Runnable.MisfirePolicy>
org.ametys.core.schedule.Runnable.MisfirePolicy
All Implemented Interfaces:
Serializable, Comparable<Runnable.MisfirePolicy>, java.lang.constant.Constable
Enclosing interface:
Runnable

The possible misfire policies
  • Enum Constant Details

    • IGNORE

      public static final Runnable.MisfirePolicy IGNORE
      Ignore that there were misfired triggers, and try to fire them all as soon as it can. See CronScheduleBuilder.withMisfireHandlingInstructionIgnoreMisfires() and Trigger.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. See CronScheduleBuilder.withMisfireHandlingInstructionFireAndProceed() and CronTrigger.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. See CronScheduleBuilder.withMisfireHandlingInstructionDoNothing() and CronTrigger.MISFIRE_INSTRUCTION_DO_NOTHING
  • Method Details

    • values

      public static Runnable.MisfirePolicy[] 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

      public static Runnable.MisfirePolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null