Class IoUringIoHandler

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

    public final class IoUringIoHandler
    extends Object
    implements io.netty.channel.IoHandler
    IoHandler which is implemented in terms of the Linux-specific io_uring API.
    • Method Detail

      • initialize

        public void initialize()
        Specified by:
        initialize 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)
                                                 throws Exception
        Specified by:
        register in interface io.netty.channel.IoHandler
        Throws:
        Exception
      • wakeup

        public void wakeup()
        Specified by:
        wakeup 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
      • newFactory

        public static io.netty.channel.IoHandlerFactory newFactory()
        Create a new IoHandlerFactory that can be used to create IoUringIoHandlers.
        Returns:
        factory
      • newFactory

        public static io.netty.channel.IoHandlerFactory newFactory​(int ringSize)
        Create a new IoHandlerFactory that can be used to create IoUringIoHandlers. Each IoUringIoHandler will use a ring of size ringSize.
        Parameters:
        ringSize - the size of the ring.
        Returns:
        factory
      • newFactory

        public static io.netty.channel.IoHandlerFactory newFactory​(IoUringIoHandlerConfig config)
        Create a new IoHandlerFactory that can be used to create IoUringIoHandlers. Each IoUringIoHandler will use same option
        Parameters:
        config - the io_uring configuration
        Returns:
        factory