Enum Class ChannelStatus

java.lang.Object
java.lang.Enum<ChannelStatus>
io.bytestreams.exchange.core.ChannelStatus
All Implemented Interfaces:
Serializable, Comparable<ChannelStatus>, Constable

public enum ChannelStatus extends Enum<ChannelStatus>
The lifecycle status of a Channel.
  • Enum Constant Details

    • INIT

      public static final ChannelStatus INIT
      Constructed but not yet started.
    • READY

      public static final ChannelStatus READY
      Started and ready to send/receive.
    • CLOSING

      public static final ChannelStatus CLOSING
      Shutting down gracefully; no new requests accepted.
    • CLOSED

      public static final ChannelStatus CLOSED
      Permanently closed.
  • Method Details

    • values

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