- java.lang.Object
-
- io.netty5.channel.epoll.Epoll
-
public final class Epoll extends Object
Tells ifnetty-transport-native-epoll
is supported.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
Ensure thatnetty-transport-native-epoll
is available.static boolean
isAvailable()
Returnstrue
if and only if thenetty-transport-native-epoll
is available.static boolean
isTcpFastOpenClientSideAvailable()
static boolean
isTcpFastOpenServerSideAvailable()
static Throwable
unavailabilityCause()
Returns the cause of unavailability ofnetty-transport-native-epoll
.
-
-
-
Method Detail
-
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
-
unavailabilityCause
public static Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-transport-native-epoll
.- Returns:
- the cause if unavailable.
null
if available.
-
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
.
-
-