Class EpollChannelOptionFactory

java.lang.Object
io.micronaut.http.netty.channel.converters.EpollChannelOptionFactory
All Implemented Interfaces:
ChannelOptionFactory

@Internal @Singleton @Requires(classes=io.netty.channel.epoll.Epoll.class, condition=EpollAvailabilityCondition.class) public class EpollChannelOptionFactory extends Object implements ChannelOptionFactory
Creates channel options.
Author:
croudet
  • Constructor Details

    • EpollChannelOptionFactory

      public EpollChannelOptionFactory()
  • Method Details

    • channelOption

      public io.netty.channel.ChannelOption<?> channelOption(String name)
      Description copied from interface: ChannelOptionFactory
      Creates a channel options.
      Specified by:
      channelOption in interface ChannelOptionFactory
      Parameters:
      name - The name of the option.
      Returns:
      A channel option.
    • convertValue

      public Object convertValue(io.netty.channel.ChannelOption<?> option, Object value, Environment env)
      Description copied from interface: ChannelOptionFactory
      Converts the specified value given the channel option type.
      Specified by:
      convertValue in interface ChannelOptionFactory
      Parameters:
      option - The channel option.
      value - The value to convert.
      env - The environment use for the conversion.
      Returns:
      The converted value.