Package io.micronaut.http.server.netty
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)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe channel is a connection channel, e.g.The channel is a "listener" channel, e.g.The channel is a channel representing an individual HTTP2 stream, created for a push promise.The channel is a channel representing an individual HTTP2 stream. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static NettyServerCustomizer.ChannelRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LISTENER
The channel is a "listener" channel, e.g. aServerSocketChannel
representing a TCP listener the server is bound to. -
CONNECTION
The channel is a connection channel, e.g. aSocketChannel
, representing an HTTP connection. -
REQUEST_STREAM
The channel is a channel representing an individual HTTP2 stream. -
PUSH_PROMISE_STREAM
The channel is a channel representing an individual HTTP2 stream, created for a push promise.
-
-
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
-