Package io.netty.channel.epoll
Class Epoll
- java.lang.Object
-
- io.netty.channel.epoll.Epoll
-
public final class Epoll extends java.lang.ObjectTells ifnetty-transport-native-epollis supported.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureAvailability()Ensure thatnetty-transport-native-epollis available.static booleanisAvailable()Returnstrueif and only if thenetty-transport-native-epollis available.static booleanisTcpFastOpenClientSideAvailable()static booleanisTcpFastOpenServerSideAvailable()static java.lang.ThrowableunavailabilityCause()Returns the cause of unavailability ofnetty-transport-native-epoll.
-
-
-
Method Detail
-
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
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-transport-native-epoll.- Returns:
- the cause if unavailable.
nullif available.
-
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.
-
-