Enum Async.Status
- All Implemented Interfaces:
Serializable,Comparable<Async.Status>,Constable
public static enum Async.Status extends Enum<Async.Status>
Information about the runtime status of an async option.
The runtime state of an async option has the following transitions.
+ | | AsyncOutput.async(Duration d) | v +---------+ +------+ | | Async.resume() | | | RUNNING +--------------->+ DONE | | | | | +---------+ +------+ | | after Duration d | v +----------+ | | | CANCELED | | | +----------+
- Since:
- 4.0.0, CE 2019.1
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELEDThe duration for the async operation has timed out.DONEThe async operation completed before the timeout, with callingAsync.resume().RUNNINGThe async operation is still ongoing. -
Method Summary
Modifier and Type Method Description static Async.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Async.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The async operation is still ongoing.- Since:
- 4.0.0, CE 2019.1
-
CANCELED
The duration for the async operation has timed out.- Since:
- 4.0.0, CE 2019.1
-
DONE
The async operation completed before the timeout, with callingAsync.resume().- Since:
- 4.0.0, CE 2019.1
-
-
Method Details
-
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
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
-