Class EpollProvider


  • public class EpollProvider
    extends Object
    Wraps and provides Epoll classes. This is to protect the user from ClassNotFoundException's caused by the absence of the netty-transport-native-epoll library during runtime. Internal API.
    Since:
    4.4
    Author:
    Mark Paluch, Yohei Ueki
    • Constructor Detail

      • EpollProvider

        public EpollProvider()
    • Method Detail

      • isAvailable

        public static boolean isAvailable()
        Returns:
        true if epoll 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.