@UnstableApi public final class KQueue extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
ensureAvailability()
Ensure that
netty-transport-native-kqueue is
available. |
static boolean |
isAvailable()
Returns
true if and only if the netty-transport-native-kqueue is available. |
static boolean |
isTcpFastOpenClientSideAvailable()
Returns
true if the kqueue native transport is both available and supports
client-side TCP FastOpen. |
static boolean |
isTcpFastOpenServerSideAvailable()
Returns
true if the kqueue native transport is both available and supports
server-side TCP FastOpen. |
static java.lang.Throwable |
unavailabilityCause()
Returns the cause of unavailability of
netty-transport-native-kqueue . |
public static boolean isAvailable()
true
if and only if the netty-transport-native-kqueue
is available.public static void ensureAvailability()
netty-transport-native-kqueue
is
available.java.lang.UnsatisfiedLinkError
- if unavailablepublic static java.lang.Throwable unavailabilityCause()
netty-transport-native-kqueue
.null
if available.public static boolean isTcpFastOpenClientSideAvailable()
true
if the kqueue native transport is both available and supports
client-side TCP FastOpen.true
if it's possible to use client-side TCP FastOpen via kqueue, otherwise false
.public static boolean isTcpFastOpenServerSideAvailable()
true
if the kqueue native transport is both available and supports
server-side TCP FastOpen.true
if it's possible to use server-side TCP FastOpen via kqueue, otherwise false
.