Enum Class ScheduleType

java.lang.Object
java.lang.Enum<ScheduleType>
top.magstar.framework.scheduler.models.ScheduleType
All Implemented Interfaces:
Serializable, Comparable<ScheduleType>, Constable

public enum ScheduleType extends Enum<ScheduleType>
调度类型枚举 - 定义任务使用的调度器类型
Since:
1.0.0
Version:
1.0.0
Author:
Berry_so
  • Enum Constant Details

    • AUTO

      public static final ScheduleType AUTO
      自动选择:async=true 使用 MagstarScheduler,否则使用 Bukkit
    • BUKKIT

      public static final ScheduleType BUKKIT
      强制使用 Bukkit 调度器(兼容模式)
    • MAGSTAR

      public static final ScheduleType MAGSTAR
      强制使用 MagstarScheduler(推荐)
  • Method Details

    • values

      public static ScheduleType[] 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 ScheduleType 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