Top Description Fields Constructors Methods
io.netty5.channel.kqueue

public final Class KQueue

extends Object
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty5.channel.ChannelOption, io.netty5.channel.unix.FileDescriptor, io.netty5.util.internal.SystemPropertyUtil, .UnstableApi

If KQueue is available the JNI resources will be loaded when this class loads.

Field Summary

Modifier and TypeField and Description
private static final Throwable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static boolean
isAvailable()

Returns true if and only if the netty-transport-native-kqueue is available.

public static boolean

Returns:

true if it's possible to use client-side TCP FastOpen via kqueue, otherwise false.
isTcpFastOpenClientSideAvailable
()

Returns true if the kqueue native transport is both available and supports client-side TCP FastOpen.

public static boolean

Returns:

true if it's possible to use server-side TCP FastOpen via kqueue, otherwise false.
isTcpFastOpenServerSideAvailable
()

Returns true if the kqueue native transport is both available and supports server-side TCP FastOpen.

public static Throwable

Returns:

the cause if unavailable. null if available.
unavailabilityCause
()

Returns the cause of unavailability of netty-transport-native-kqueue.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNAVAILABILITY_CAUSEback to summary
private static final Throwable UNAVAILABILITY_CAUSE

Constructor Detail

KQueueback to summary
private KQueue()

Method Detail

ensureAvailabilityback to summary
public static void ensureAvailability()

Ensure that netty-transport-native-kqueue is available.

Exceptions
UnsatisfiedLinkError:
if unavailable
isAvailableback to summary
public static boolean isAvailable()

Returns true if and only if the netty-transport-native-kqueue is available.

isTcpFastOpenClientSideAvailableback to summary
public static boolean isTcpFastOpenClientSideAvailable()

Returns true if the kqueue native transport is both available and supports client-side TCP FastOpen.

Returns:boolean

true if it's possible to use client-side TCP FastOpen via kqueue, otherwise false.

isTcpFastOpenServerSideAvailableback to summary
public static boolean isTcpFastOpenServerSideAvailable()

Returns true if the kqueue native transport is both available and supports server-side TCP FastOpen.

Returns:boolean

true if it's possible to use server-side TCP FastOpen via kqueue, otherwise false.

unavailabilityCauseback to summary
public static Throwable unavailabilityCause()

Returns the cause of unavailability of netty-transport-native-kqueue.

Returns:Throwable

the cause if unavailable. null if available.