Package org.quartz

Enum Trigger.CompletedExecutionInstruction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Trigger.CompletedExecutionInstruction>
    Enclosing interface:
    Trigger

    public static enum Trigger.CompletedExecutionInstruction
    extends java.lang.Enum<Trigger.CompletedExecutionInstruction>

    NOOP Instructs the Scheduler that the Trigger has no further instructions.

    RE_EXECUTE_JOB Instructs the Scheduler that the Trigger wants the JobDetail to re-execute immediately. If not in a 'RECOVERING' or 'FAILED_OVER' situation, the execution context will be re-used (giving the Job the ability to 'see' anything placed in the context by its last execution).

    SET_TRIGGER_COMPLETE Instructs the Scheduler that the Trigger should be put in the COMPLETE state.

    DELETE_TRIGGER Instructs the Scheduler that the Trigger wants itself deleted.

    SET_ALL_JOB_TRIGGERS_COMPLETE Instructs the Scheduler that all Triggers referencing the same JobDetail as this one should be put in the COMPLETE state.

    SET_TRIGGER_ERROR Instructs the Scheduler that all Triggers referencing the same JobDetail as this one should be put in the ERROR state.

    SET_ALL_JOB_TRIGGERS_ERROR Instructs the Scheduler that the Trigger should be put in the ERROR state.

    • Method Detail

      • values

        public static Trigger.CompletedExecutionInstruction[] 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 (Trigger.CompletedExecutionInstruction c : Trigger.CompletedExecutionInstruction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Trigger.CompletedExecutionInstruction valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null