Class KQueue
java.lang.Object
io.netty.channel.kqueue.KQueue
public final class KQueue
extends java.lang.Object
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 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 java.lang.ThrowableReturns the cause of unavailability ofnetty-transport-native-kqueue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
UNAVAILABILITY_CAUSE
private static final java.lang.Throwable UNAVAILABILITY_CAUSE
-
-
Constructor Details
-
KQueue
private 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:
java.lang.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.
-