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