Enum Class Strategy

java.lang.Object
java.lang.Enum<Strategy>
org.aoju.bus.cron.Strategy
All Implemented Interfaces:
Serializable, Comparable<Strategy>, Constable

public enum Strategy extends Enum<Strategy>
任务执行规则
Since:
Java 17+
Version:
6.5.0
Author:
Kimi Liu
  • Enum Constant Details

    • SERIAL_EXECUTION

      public static final Strategy SERIAL_EXECUTION
      串行
    • CONCURRENT_EXECUTION

      public static final Strategy CONCURRENT_EXECUTION
      并行
    • DISCARD_LATER

      public static final Strategy DISCARD_LATER
      丢弃
    • COVER_EARLY

      public static final Strategy COVER_EARLY
      覆盖
  • Method Details

    • values

      public static Strategy[] 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 Strategy 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
    • match

      public static Strategy match(String name, Strategy defaultItem)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)