Enum Class ScheduleType

java.lang.Object
java.lang.Enum<ScheduleType>
com.loomcache.server.executor.ScheduleType
All Implemented Interfaces:
Serializable, Comparable<ScheduleType>, Constable

public enum ScheduleType extends Enum<ScheduleType>
Schedule types for recurring or delayed task execution in a DistributedExecutorService.
Since:
2.0
  • Enum Constant Details

    • ONE_SHOT_DELAY

      public static final ScheduleType ONE_SHOT_DELAY
      Execute once after an initial delay.
    • FIXED_RATE

      public static final ScheduleType FIXED_RATE
      Execute repeatedly at a fixed rate (period measured from start of each execution).
    • FIXED_DELAY

      public static final ScheduleType FIXED_DELAY
      Execute repeatedly with a fixed delay between the end of one execution and the start of the next.
  • 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