Package io.netty.channel.kqueue
Class KQueue
java.lang.Object
io.netty.channel.kqueue.KQueue
If KQueue is available the JNI resources will be loaded when this class loads.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Ensure thatnetty-transport-native-kqueue
is available.static boolean
Returnstrue
if and only if thenetty-transport-native-kqueue
is available.static boolean
Returnstrue
if the kqueue native transport is both available and supports client-side TCP FastOpen.static boolean
Returnstrue
if the kqueue native transport is both available and supports server-side TCP FastOpen.static Throwable
Returns the cause of unavailability ofnetty-transport-native-kqueue
.
-
Field Details
-
UNAVAILABILITY_CAUSE
-
-
Constructor Details
-
KQueue
private KQueue()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Returnstrue
if and only if thenetty-transport-native-kqueue
is available. -
ensureAvailability
public static void ensureAvailability()Ensure thatnetty-transport-native-kqueue
is available.- Throws:
UnsatisfiedLinkError
- if unavailable
-
isTcpFastOpenClientSideAvailable
public static boolean isTcpFastOpenClientSideAvailable()Returnstrue
if the kqueue native transport is both available and supports client-side TCP FastOpen.- Returns:
true
if it's possible to use client-side TCP FastOpen via kqueue, otherwisefalse
.
-
isTcpFastOpenServerSideAvailable
public static boolean isTcpFastOpenServerSideAvailable()Returnstrue
if the kqueue native transport is both available and supports server-side TCP FastOpen.- Returns:
true
if it's possible to use server-side TCP FastOpen via kqueue, otherwisefalse
.
-