Enum Class CloseHandler.CloseEvent

java.lang.Object
java.lang.Enum<CloseHandler.CloseEvent>
io.servicetalk.transport.netty.internal.CloseHandler.CloseEvent
All Implemented Interfaces:
Serializable, Comparable<CloseHandler.CloseEvent>, Constable
Enclosing class:
CloseHandler

public static enum CloseHandler.CloseEvent extends Enum<CloseHandler.CloseEvent>
These events indicate an event was observed from the protocol or Channel that indicates the end of the Channel and no further requests should be attempted.
  • Enum Constant Details

    • PROTOCOL_CLOSING_OUTBOUND

      public static final CloseHandler.CloseEvent PROTOCOL_CLOSING_OUTBOUND
      Outbound protocol close command observed eg. HTTP header: Connection: close.
    • PROTOCOL_CLOSING_INBOUND

      public static final CloseHandler.CloseEvent PROTOCOL_CLOSING_INBOUND
      Inbound protocol close command observed eg. HTTP header: Connection: close.
    • GRACEFUL_USER_CLOSING

      public static final CloseHandler.CloseEvent GRACEFUL_USER_CLOSING
      User initiated close command, depends on the implementation but usually resembles outbound protocol close.
    • CHANNEL_CLOSED_OUTBOUND

      public static final CloseHandler.CloseEvent CHANNEL_CLOSED_OUTBOUND
      Outbound SocketChannel shutdown observed.
    • CHANNEL_CLOSED_INBOUND

      public static final CloseHandler.CloseEvent CHANNEL_CLOSED_INBOUND
      Inbound SocketChannel shutdown observed.
  • Method Details

    • values

      public static CloseHandler.CloseEvent[] 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 CloseHandler.CloseEvent 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