Class Epoll

java.lang.Object
io.netty.channel.epoll.Epoll

public final class Epoll extends Object
Tells if netty-transport-native-epoll is supported.
  • Field Details

    • UNAVAILABILITY_CAUSE

      private static final Throwable UNAVAILABILITY_CAUSE
  • Constructor Details

    • Epoll

      private Epoll()
  • Method Details

    • isAvailable

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

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

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

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

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