Enum Class OverlapPolicy

java.lang.Object
java.lang.Enum<OverlapPolicy>
com.elex_project.chronos.OverlapPolicy
All Implemented Interfaces:
Serializable, Comparable<OverlapPolicy>, Constable

public enum OverlapPolicy extends Enum<OverlapPolicy>
  • Enum Constant Details

    • CONCURRENT

      public static final OverlapPolicy CONCURRENT
      Same task can be executed concurrently. 동시 실행 (기본값). 이전 작업의 완료 여부와 상관없이 새로운 스레드에서 다음 주기의 작업을 즉시 실행합니다.
    • SKIP

      public static final OverlapPolicy SKIP
      The same task can only be executed once. Skips the next execution if the previous one is still running. 건너뛰기. 이전 작업이 실행 중이라면, 이번 주기에 도래한 작업은 실행하지 않고 패스합니다.
    • DELAY

      public static final OverlapPolicy DELAY
      The next execution is delayed until the previous one is finished. The next execution time is calculated at the end of the previous one. 지연 실행. 이전 작업이 끝날 때까지 대기한 후, 끝난 시점부터 다음 실행 주기를 새로 계산하여 예약합니다.
  • Method Details

    • values

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