Class KQueueChannelOptionFactory

  • All Implemented Interfaces:
    io.micronaut.core.convert.TypeConverterRegistrar, ChannelOptionFactory

    @Internal
    @Singleton
    @Requires(classes=io.netty.channel.kqueue.KQueue.class,
              condition=KQueueAvailabilityCondition.class)
    public class KQueueChannelOptionFactory
    extends java.lang.Object
    implements ChannelOptionFactory, io.micronaut.core.convert.TypeConverterRegistrar
    Creates channel options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.channel.ChannelOption<?> channelOption​(java.lang.String name)
      Creates a channel options.
      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.
      void register​(io.micronaut.core.convert.ConversionService<?> conversionService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KQueueChannelOptionFactory

        public KQueueChannelOptionFactory()
    • Method Detail

      • channelOption

        public io.netty.channel.ChannelOption<?> channelOption​(java.lang.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 java.lang.Object convertValue​(io.netty.channel.ChannelOption<?> option,
                                             java.lang.Object value,
                                             io.micronaut.context.env.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.
      • register

        public void register​(io.micronaut.core.convert.ConversionService<?> conversionService)
        Specified by:
        register in interface io.micronaut.core.convert.TypeConverterRegistrar