Class KQueue

java.lang.Object
io.netty.channel.kqueue.KQueue

@UnstableApi public final class KQueue extends Object
If KQueue is available the JNI resources will be loaded when this class loads.
  • Field Details

    • UNAVAILABILITY_CAUSE

      private static final Throwable UNAVAILABILITY_CAUSE
  • Constructor Details

    • KQueue

      private KQueue()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
      Returns true if and only if the netty-transport-native-kqueue is available.
    • ensureAvailability

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

      public static 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.