Package io.netty.channel.epoll
Class Epoll
java.lang.Object
io.netty.channel.epoll.Epoll
Tells if
netty-transport-native-epoll
is
supported.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure thatnetty-transport-native-epoll
is available.static boolean
Returnstrue
if and only if thenetty-transport-native-epoll
is available.static boolean
static boolean
static Throwable
Returns the cause of unavailability ofnetty-transport-native-epoll
.
-
Field Details
-
UNAVAILABILITY_CAUSE
-
-
Constructor Details
-
Epoll
private Epoll()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Returnstrue
if and only if thenetty-transport-native-epoll
is available. -
ensureAvailability
public static void ensureAvailability()Ensure thatnetty-transport-native-epoll
is available.- Throws:
UnsatisfiedLinkError
- if unavailable
-
isTcpFastOpenClientSideAvailable
public static boolean isTcpFastOpenClientSideAvailable()- Returns:
true
if it's possible to use client-side TCP FastOpen via epoll, otherwisefalse
.
-
isTcpFastOpenServerSideAvailable
public static boolean isTcpFastOpenServerSideAvailable()- Returns:
true
if it's possible to use server-side TCP FastOpen via epoll, otherwisefalse
.
-