Enum Class CronTriggerMisfireInstruction

java.lang.Object
java.lang.Enum<CronTriggerMisfireInstruction>
io.jmix.quartz.model.CronTriggerMisfireInstruction
All Implemented Interfaces:
EnumClass<String>, Serializable, Comparable<CronTriggerMisfireInstruction>, Constable

public enum CronTriggerMisfireInstruction extends Enum<CronTriggerMisfireInstruction> implements EnumClass<String>
Describes all Misfire Instruction options available for Quartz CronTrigger. Each option relates to some MISFIRE_INSTRUCTION constant and can call corresponding method of the Schedule builder to apply target misfire instruction.
  • Enum Constant Details

  • Method Details

    • values

      public static CronTriggerMisfireInstruction[] 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 CronTriggerMisfireInstruction 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
    • getId

      public String getId()
      Specified by:
      getId in interface EnumClass<String>
    • getCode

      public int getCode()
    • applyInstruction

      public void applyInstruction(org.quartz.CronScheduleBuilder builder)
      Calls necessary method of CronScheduleBuilder to apply target misfire instruction
      Parameters:
      builder - schedule builder
    • fromId

      @Nullable public static CronTriggerMisfireInstruction fromId(String id)
    • fromCode

      @Nullable public static CronTriggerMisfireInstruction fromCode(int code)