Package io.micronaut.http.server.netty
Enum NettyServerCustomizer.ChannelRole
- java.lang.Object
-
- java.lang.Enum<NettyServerCustomizer.ChannelRole>
-
- io.micronaut.http.server.netty.NettyServerCustomizer.ChannelRole
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NettyServerCustomizer.ChannelRole>
- Enclosing interface:
- NettyServerCustomizer
public static enum NettyServerCustomizer.ChannelRole extends java.lang.Enum<NettyServerCustomizer.ChannelRole>
Enum to describe the role of the channel passed toNettyServerCustomizer.specializeForChannel(Channel, ChannelRole).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTIONThe channel is a connection channel, e.g.LISTENERThe channel is a "listener" channel, e.g.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NettyServerCustomizer.ChannelRolevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NettyServerCustomizer.ChannelRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LISTENER
public static final NettyServerCustomizer.ChannelRole LISTENER
The channel is a "listener" channel, e.g. aServerSocketChannelrepresenting a TCP listener the server is bound to.
-
CONNECTION
public static final NettyServerCustomizer.ChannelRole CONNECTION
The channel is a connection channel, e.g. aSocketChannel, representing an HTTP connection.
-
-
Method Detail
-
values
public static NettyServerCustomizer.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 (NettyServerCustomizer.ChannelRole c : NettyServerCustomizer.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 NettyServerCustomizer.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
-
-