Enum Class JobAction

java.lang.Object
java.lang.Enum<JobAction>
com.kingsrook.qqq.backend.core.jobs.model.JobAction
All Implemented Interfaces:
Serializable, Comparable<JobAction>, Constable

public enum JobAction extends Enum<JobAction>
Control actions on a durable job (spec section 2.7).
  • Enum Constant Details

    • START

      public static final JobAction START
    • PAUSE

      public static final JobAction PAUSE
    • RESUME

      public static final JobAction RESUME
    • CANCEL

      public static final JobAction CANCEL
    • RETRY_FAILED

      public static final JobAction RETRY_FAILED
    • RESTART

      public static final JobAction RESTART
    • RUN_AGAIN

      public static final JobAction RUN_AGAIN
    • RETRY_FAILED_ROWS

      public static final JobAction RETRY_FAILED_ROWS
    • DOWNLOAD_FAILED_ROWS

      public static final JobAction DOWNLOAD_FAILED_ROWS
  • Method Details

    • values

      public static JobAction[] 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 JobAction 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
    • isAllowedFromAssistant

      public boolean isAllowedFromAssistant()
      Whether the assistant channel may take this action itself. It may pause or cancel; everything that starts work needs a person (spec section 3.5).
    • getLabel

      public String getLabel()
      Getter for label
    • getPastTense

      public String getPastTense()
      Getter for pastTense