Class Epoll
java.lang.Object
io.netty.channel.epoll.Epoll
Tells if
netty-transport-native-epoll is
supported.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsure thatnetty-transport-native-epollis available.static booleanReturnstrueif and only if thenetty-transport-native-epollis available.static booleanstatic booleanstatic ThrowableReturns the cause of unavailability ofnetty-transport-native-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:
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.
-