Package dev.turboism.sdk.hostread
Enum Class AsyncHostReadStatus
- All Implemented Interfaces:
Serializable,Comparable<AsyncHostReadStatus>,Constable
Lifecycle states for an asynchronous host-read handle and its terminal result.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompleted without a value because cancellation won the terminal transition.Completed without a value and with a structured failure.Accepted by the runtime but not yet started on the shared lane.Executing on the runtime-owned shared host-read lane.Completed with a compatible snapshot value. -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncHostReadStatusReturns the enum constant of this class with the specified name.static AsyncHostReadStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUEUED
Accepted by the runtime but not yet started on the shared lane. -
RUNNING
Executing on the runtime-owned shared host-read lane. -
SUCCEEDED
Completed with a compatible snapshot value. -
FAILED
Completed without a value and with a structured failure. -
CANCELED
Completed without a value because cancellation won the terminal transition.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-