Class IOUringProvider


  • public class IOUringProvider
    extends Object
    Wraps and provides io_uring classes. This is to protect the user from ClassNotFoundException's caused by the absence of the netty-incubator-transport-native-io_uring library during runtime. Internal API.
    Since:
    6.1
    Author:
    Mark Paluch
    • Constructor Detail

      • IOUringProvider

        public IOUringProvider()
    • Method Detail

      • isAvailable

        public static boolean isAvailable()
        Returns:
        true if io_uring is available.
      • applyKeepAlive

        public static void applyKeepAlive​(Bootstrap bootstrap,
                                          int count,
                                          Duration idle,
                                          Duration interval)
        Apply Keep-Alive options.
        Since:
        6.1
      • applyTcpUserTimeout

        public static void applyTcpUserTimeout​(Bootstrap bootstrap,
                                               Duration timeout)
        Apply TcpUserTimeout options.