Interface ChannelOptionFactory
-
- All Known Implementing Classes:
DefaultChannelOptionFactory,EpollChannelOptionFactory,KQueueChannelOptionFactory
@Internal public interface ChannelOptionFactoryCreates channel options.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default io.netty.channel.ChannelOption<?>channelOption(java.lang.String name)Creates a channel options.default java.lang.ObjectconvertValue(io.netty.channel.ChannelOption<?> option, java.lang.Object value, io.micronaut.context.env.Environment env)Converts the specified value given the channel option type.
-
-
-
Method Detail
-
channelOption
default io.netty.channel.ChannelOption<?> channelOption(java.lang.String name)
Creates a channel options.- Parameters:
name- The name of the option.- Returns:
- A channel option.
-
convertValue
default java.lang.Object convertValue(io.netty.channel.ChannelOption<?> option, java.lang.Object value, io.micronaut.context.env.Environment env)Converts the specified value given the channel option type.- Parameters:
option- The channel option.value- The value to convert.env- The environment use for the conversion.- Returns:
- The converted value.
-
-