Enum Class NettyServerCustomizer.ChannelRole

java.lang.Object
java.lang.Enum<NettyServerCustomizer.ChannelRole>
io.micronaut.http.server.netty.NettyServerCustomizer.ChannelRole
All Implemented Interfaces:
Serializable, Comparable<NettyServerCustomizer.ChannelRole>, Constable
Enclosing interface:
NettyServerCustomizer

public static enum NettyServerCustomizer.ChannelRole extends Enum<NettyServerCustomizer.ChannelRole>
Enum to describe the role of the channel passed to NettyServerCustomizer.specializeForChannel(Channel, ChannelRole).
  • Enum Constant Details

    • LISTENER

      public static final NettyServerCustomizer.ChannelRole LISTENER
      The channel is a "listener" channel, e.g. a ServerSocketChannel representing a TCP listener the server is bound to.
    • CONNECTION

      public static final NettyServerCustomizer.ChannelRole CONNECTION
      The channel is a connection channel, e.g. a SocketChannel, representing an HTTP connection.
    • REQUEST_STREAM

      public static final NettyServerCustomizer.ChannelRole REQUEST_STREAM
      The channel is a channel representing an individual HTTP2 stream.

      Note: As of 4.5.0, there is no separate channel for each request anymore for performance reasons. You can revert to the old behavior using the micronaut.server.netty.legacy-multiplex-handlers=true configuration property.

    • PUSH_PROMISE_STREAM

      public static final NettyServerCustomizer.ChannelRole PUSH_PROMISE_STREAM
      The channel is a channel representing an individual HTTP2 stream, created for a push promise.

      Note: As of 4.5.0, there is no separate channel for each request anymore for performance reasons. You can revert to the old behavior using the micronaut.server.netty.legacy-multiplex-handlers=true configuration property.

  • Method Details

    • values

      public static NettyServerCustomizer.ChannelRole[] 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 NettyServerCustomizer.ChannelRole 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