@Internal public interface ChannelOptionFactory
Modifier and Type | Method and Description |
---|---|
default io.netty.channel.ChannelOption<?> |
channelOption(java.lang.String name)
Creates a channel options.
|
default java.lang.Object |
convertValue(io.netty.channel.ChannelOption<?> option,
java.lang.Object value,
Environment env)
Converts the specified value given the channel option type.
|
default io.netty.channel.ChannelOption<?> channelOption(java.lang.String name)
name
- The name of the option.default java.lang.Object convertValue(io.netty.channel.ChannelOption<?> option, java.lang.Object value, Environment env)
option
- The channel option.value
- The value to convert.env
- The environment use for the conversion.