Module java.base
Package java.dyn

Enum Coroutine.StealResult

    • Enum Constant Detail

      • FAIL_BY_CONTENTION

        public static final Coroutine.StealResult FAIL_BY_CONTENTION
        steal failed due to lock failure
      • FAIL_BY_STATUS

        public static final Coroutine.StealResult FAIL_BY_STATUS
        steal failed since the steal is forbiden with the status
      • FAIL_BY_NATIVE_FRAME

        public static final Coroutine.StealResult FAIL_BY_NATIVE_FRAME
        steal failed since native frame isn't supported
    • Method Detail

      • values

        public static Coroutine.StealResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Coroutine.StealResult c : Coroutine.StealResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Coroutine.StealResult 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