Module java.base
Package java.lang

Enum Continuation.PreemptStatus

java.lang.Object
java.lang.Enum<Continuation.PreemptStatus>
java.lang.Continuation.PreemptStatus
All Implemented Interfaces:
Serializable, Comparable<Continuation.PreemptStatus>, Constable
Enclosing class:
Continuation

public static enum Continuation.PreemptStatus
extends Enum<Continuation.PreemptStatus>
Preemption attempt result
  • Enum Constant Details

    • SUCCESS

      public static final Continuation.PreemptStatus SUCCESS
      Success
    • PERM_FAIL_UNSUPPORTED

      public static final Continuation.PreemptStatus PERM_FAIL_UNSUPPORTED
      Permanent failure
    • PERM_FAIL_YIELDING

      public static final Continuation.PreemptStatus PERM_FAIL_YIELDING
      Permanent failure: continuation alreay yielding
    • PERM_FAIL_NOT_MOUNTED

      public static final Continuation.PreemptStatus PERM_FAIL_NOT_MOUNTED
      Permanent failure: continuation not mounted on the thread
    • TRANSIENT_FAIL_PINNED_CRITICAL_SECTION

      public static final Continuation.PreemptStatus TRANSIENT_FAIL_PINNED_CRITICAL_SECTION
      Transient failure: continuation pinned due to a held CS
    • TRANSIENT_FAIL_PINNED_NATIVE

      public static final Continuation.PreemptStatus TRANSIENT_FAIL_PINNED_NATIVE
      Transient failure: continuation pinned due to native frame
    • TRANSIENT_FAIL_PINNED_MONITOR

      public static final Continuation.PreemptStatus TRANSIENT_FAIL_PINNED_MONITOR
      Transient failure: continuation pinned due to a held monitor
  • Method Details

    • values

      public static Continuation.PreemptStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Continuation.PreemptStatus valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • pinned

      public Continuation.Pinned pinned()
      TBD
      Returns:
      TBD