Class KQueue


  • public final class KQueue
    extends java.lang.Object
    If KQueue is available the JNI resources will be loaded when this class loads.
    • Method Detail

      • ensureAvailability

        public static void ensureAvailability()
        Ensure that netty-transport-native-kqueue is available.
        Throws:
        java.lang.UnsatisfiedLinkError - if unavailable
      • unavailabilityCause

        public static java.lang.Throwable unavailabilityCause()
        Returns the cause of unavailability of netty-transport-native-kqueue.
        Returns:
        the cause if unavailable. null if available.
      • isTcpFastOpenClientSideAvailable

        public static boolean isTcpFastOpenClientSideAvailable()
        Returns true if the kqueue native transport is both available and supports client-side TCP FastOpen.
        Returns:
        true if it's possible to use client-side TCP FastOpen via kqueue, otherwise false.
      • isTcpFastOpenServerSideAvailable

        public static boolean isTcpFastOpenServerSideAvailable()
        Returns true if the kqueue native transport is both available and supports server-side TCP FastOpen.
        Returns:
        true if it's possible to use server-side TCP FastOpen via kqueue, otherwise false.