Class KQueueIoHandler

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

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

      • newFactory

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

        public static io.netty.channel.IoHandlerFactory newFactory​(int maxEvents,
                                                                   io.netty.channel.SelectStrategyFactory selectStrategyFactory)
        Returns a new IoHandlerFactory that creates KQueueIoHandler instances.
      • wakeup

        public void wakeup()
        Specified by:
        wakeup in interface io.netty.channel.IoHandler
      • run

        public int run​(io.netty.channel.IoHandlerContext context)
        Specified by:
        run in interface io.netty.channel.IoHandler
      • prepareToDestroy

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

        public void destroy()
        Specified by:
        destroy in interface io.netty.channel.IoHandler
      • register

        public io.netty.channel.IoRegistration register​(io.netty.channel.IoHandle handle)
        Specified by:
        register in interface io.netty.channel.IoHandler
      • isCompatible

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