Enum Class ResumeReason

java.lang.Object
java.lang.Enum<ResumeReason>
dev.getelements.elements.rt.ResumeReason
All Implemented Interfaces:
Serializable, Comparable<ResumeReason>, Constable

public enum ResumeReason extends Enum<ResumeReason>
Provides a reason as to why a task was resumed, typically by the SchedulerContext, but not always.
  • Enum Constant Details

    • SCHEDULER

      public static final ResumeReason SCHEDULER
      The coroutine was resumed by the SchedulerContext
    • NETWORK

      public static final ResumeReason NETWORK
      The coroutine was resumed as the part of a network or distributed callback.
    • ERROR

      public static final ResumeReason ERROR
      Indicates that an error condition caused the coroutine to resume. The re
    • MANUAL

      public static final ResumeReason MANUAL
      The coroutine was manually resumed.
  • Method Details

    • values

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