Class KQueueHandler

  • All Implemented Interfaces:
    io.netty5.channel.IoHandler

    @UnstableApi
    public final class KQueueHandler
    extends Object
    implements io.netty5.channel.IoHandler
    IoHandler which uses kqueue under the covers. Only works on BSD!
    • Method Detail

      • newFactory

        public static io.netty5.channel.IoHandlerFactory newFactory()
        Returns a new IoHandlerFactory that creates KQueueHandler instances.
      • newFactory

        public static io.netty5.channel.IoHandlerFactory newFactory​(int maxEvents,
                                                                    io.netty5.channel.SelectStrategyFactory selectStrategyFactory)
        Returns a new IoHandlerFactory that creates KQueueHandler instances.
      • register

        public void register​(io.netty5.channel.IoHandle handle)
        Specified by:
        register in interface io.netty5.channel.IoHandler
      • deregister

        public void deregister​(io.netty5.channel.IoHandle handle)
                        throws Exception
        Specified by:
        deregister in interface io.netty5.channel.IoHandler
        Throws:
        Exception
      • wakeup

        public void wakeup​(boolean inEventLoop)
        Specified by:
        wakeup in interface io.netty5.channel.IoHandler
      • run

        public int run​(io.netty5.channel.IoExecutionContext context)
        Specified by:
        run in interface io.netty5.channel.IoHandler
      • destroy

        public void destroy()
        Specified by:
        destroy in interface io.netty5.channel.IoHandler
      • prepareToDestroy

        public void prepareToDestroy()
        Specified by:
        prepareToDestroy in interface io.netty5.channel.IoHandler
      • isCompatible

        public boolean isCompatible​(Class<? extends io.netty5.channel.IoHandle> handleType)
        Specified by:
        isCompatible in interface io.netty5.channel.IoHandler