Interface ChannelOptionFactory

All Known Implementing Classes:
DefaultChannelOptionFactory, EpollChannelOptionFactory, KQueueChannelOptionFactory

@Internal public interface ChannelOptionFactory
Creates channel options.
Author:
croudet
  • Method Summary

    Modifier and Type
    Method
    Description
    default io.netty.channel.ChannelOption<?>
    Creates a channel options.
    default Object
    convertValue(io.netty.channel.ChannelOption<?> option, Object value, Environment env)
    Converts the specified value given the channel option type.
  • Method Details

    • channelOption

      default io.netty.channel.ChannelOption<?> channelOption(String name)
      Creates a channel options.
      Parameters:
      name - The name of the option.
      Returns:
      A channel option.
    • convertValue

      default Object convertValue(io.netty.channel.ChannelOption<?> option, Object value, 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.