public enum SettledPromiseStatus extends java.lang.Enum<SettledPromiseStatus> implements ValueEnum
| Enum Constant and Description |
|---|
FULFILLED The Promise fulfilled with a value. |
REJECTED The Promise rejected with a reason. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String | getValue() |
static SettledPromiseStatus | valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. |
static SettledPromiseStatus[] | values() Returns an array containing the constants of this enum type, in the order they are declared. |
public static final SettledPromiseStatus FULFILLED
Promise fulfilled with a value. If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "fulfilled".
public static final SettledPromiseStatus REJECTED
Promise rejected with a reason. If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "rejected".
public static SettledPromiseStatus[] values()
for (SettledPromiseStatus c : SettledPromiseStatus.values()) System.out.println(c);
public static SettledPromiseStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null