Class Epoll
java.lang.Object
io.netty.channel.epoll.Epoll
public final class Epoll
extends java.lang.Object
Tells if
netty-transport-native-epoll is
supported.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsure thatnetty-transport-native-epollis available.static booleanReturnstrueif and only if thenetty-transport-native-epollis available.static booleanstatic booleanstatic java.lang.ThrowableReturns the cause of unavailability ofnetty-transport-native-epoll.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
UNAVAILABILITY_CAUSE
private static final java.lang.Throwable UNAVAILABILITY_CAUSE
-
-
Constructor Details
-
Epoll
private Epoll()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Returnstrueif and only if thenetty-transport-native-epollis available. -
ensureAvailability
public static void ensureAvailability()Ensure thatnetty-transport-native-epollis available.- Throws:
java.lang.UnsatisfiedLinkError- if unavailable
-
isTcpFastOpenClientSideAvailable
public static boolean isTcpFastOpenClientSideAvailable()- Returns:
trueif it's possible to use client-side TCP FastOpen via epoll, otherwisefalse.
-
isTcpFastOpenServerSideAvailable
public static boolean isTcpFastOpenServerSideAvailable()- Returns:
trueif it's possible to use server-side TCP FastOpen via epoll, otherwisefalse.
-