Enum Class AsyncHostReadStatus

java.lang.Object
java.lang.Enum<AsyncHostReadStatus>
dev.turboism.sdk.hostread.AsyncHostReadStatus
All Implemented Interfaces:
Serializable, Comparable<AsyncHostReadStatus>, Constable

public enum AsyncHostReadStatus extends Enum<AsyncHostReadStatus>
Lifecycle states for an asynchronous host-read handle and its terminal result.
  • Enum Constant Details

    • QUEUED

      public static final AsyncHostReadStatus QUEUED
      Accepted by the runtime but not yet started on the shared lane.
    • RUNNING

      public static final AsyncHostReadStatus RUNNING
      Executing on the runtime-owned shared host-read lane.
    • SUCCEEDED

      public static final AsyncHostReadStatus SUCCEEDED
      Completed with a compatible snapshot value.
    • FAILED

      public static final AsyncHostReadStatus FAILED
      Completed without a value and with a structured failure.
    • CANCELED

      public static final AsyncHostReadStatus CANCELED
      Completed without a value because cancellation won the terminal transition.
  • Method Details

    • values

      public static AsyncHostReadStatus[] 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

      public static AsyncHostReadStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null