Package io.micronaut.http.client.netty
Enum NettyClientCustomizer.ChannelRole
- java.lang.Object
-
- java.lang.Enum<NettyClientCustomizer.ChannelRole>
-
- io.micronaut.http.client.netty.NettyClientCustomizer.ChannelRole
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NettyClientCustomizer.ChannelRole>
- Enclosing interface:
- NettyClientCustomizer
public static enum NettyClientCustomizer.ChannelRole extends java.lang.Enum<NettyClientCustomizer.ChannelRole>
Enum to describe the role of the channel passed toNettyClientCustomizer.specializeForChannel(Channel, ChannelRole).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTIONThe channel is a connection channel, e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NettyClientCustomizer.ChannelRolevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NettyClientCustomizer.ChannelRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION
public static final NettyClientCustomizer.ChannelRole CONNECTION
The channel is a connection channel, e.g. aSocketChannel, representing an HTTP connection.
-
-
Method Detail
-
values
public static NettyClientCustomizer.ChannelRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NettyClientCustomizer.ChannelRole c : NettyClientCustomizer.ChannelRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NettyClientCustomizer.ChannelRole valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-