Package io.netty.channel.kqueue
Class KQueue
- java.lang.Object
-
- io.netty.channel.kqueue.KQueue
-
public final class KQueue extends java.lang.ObjectIf KQueue is available the JNI resources will be loaded when this class loads.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureAvailability()Ensure thatnetty-transport-native-kqueueis available.static booleanisAvailable()Returnstrueif and only if thenetty-transport-native-kqueueis available.static booleanisTcpFastOpenClientSideAvailable()Returnstrueif the kqueue native transport is both available and supports client-side TCP FastOpen.static booleanisTcpFastOpenServerSideAvailable()Returnstrueif the kqueue native transport is both available and supports server-side TCP FastOpen.static java.lang.ThrowableunavailabilityCause()Returns the cause of unavailability ofnetty-transport-native-kqueue.
-
-
-
Method Detail
-
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
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
Returns the cause of unavailability ofnetty-transport-native-kqueue.- Returns:
- the cause if unavailable.
nullif available.
-
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.
-
-