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

public final Class Epoll

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

Tells if netty-transport-native-epoll is supported.

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-epoll is available.

public static boolean

Returns:

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

Returns true if the epoll 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 epoll, otherwise false.
isTcpFastOpenServerSideAvailable
()

Returns true if the epoll 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-epoll.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UNAVAILABILITY_CAUSEback to summary
private static final Throwable UNAVAILABILITY_CAUSE

Constructor Detail

Epollback to summary
private Epoll()

Method Detail

ensureAvailabilityback to summary
public static void ensureAvailability()

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

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

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

isTcpFastOpenClientSideAvailableback to summary
public static boolean isTcpFastOpenClientSideAvailable()

Returns true if the epoll 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 epoll, otherwise false.

isTcpFastOpenServerSideAvailableback to summary
public static boolean isTcpFastOpenServerSideAvailable()

Returns true if the epoll 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 epoll, otherwise false.

unavailabilityCauseback to summary
public static Throwable unavailabilityCause()

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

Returns:Throwable

the cause if unavailable. null if available.