Package io.micronaut.http.client.netty
Enum Class NettyClientCustomizer.ChannelRole
java.lang.Object
java.lang.Enum<NettyClientCustomizer.ChannelRole>
io.micronaut.http.client.netty.NettyClientCustomizer.ChannelRole
- All Implemented Interfaces:
Serializable
,Comparable<NettyClientCustomizer.ChannelRole>
,Constable
- Enclosing interface:
- NettyClientCustomizer
public static enum NettyClientCustomizer.ChannelRole
extends Enum<NettyClientCustomizer.ChannelRole>
Enum to describe the role of the channel passed to
NettyClientCustomizer.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 HTTP2 stream channel. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static NettyClientCustomizer.ChannelRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTION
The channel is a connection channel, e.g. aSocketChannel
, representing an HTTP connection. -
HTTP2_STREAM
The channel is a HTTP2 stream channel.- Since:
- 4.0.0
-
-
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
-