- java.lang.Object
-
- java.lang.Enum<Coroutine.StealResult>
-
- java.dyn.Coroutine.StealResult
-
- All Implemented Interfaces:
Serializable
,Comparable<Coroutine.StealResult>
- Enclosing class:
- Coroutine
public static enum Coroutine.StealResult extends Enum<Coroutine.StealResult>
the result for steal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL_BY_CONTENTION
steal failed due to lock failureFAIL_BY_NATIVE_FRAME
steal failed since native frame isn't supportedFAIL_BY_STATUS
steal failed since the steal is forbiden with the statusSUCCESS
steal successfully
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Coroutine.StealResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static Coroutine.StealResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final Coroutine.StealResult SUCCESS
steal successfully
-
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 nameNullPointerException
- if the argument is null
-
-