Package io.netty.incubator.channel.uring
Class IOUring
- java.lang.Object
-
- io.netty.incubator.channel.uring.IOUring
-
public final class IOUring extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Throwable
UNAVAILABILITY_CAUSE
-
Constructor Summary
Constructors Modifier Constructor Description private
IOUring()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
static boolean
isAvailable()
static boolean
isTcpFastOpenClientSideAvailable()
Returnstrue
if the io_uring native transport is both available and supports client-side TCP FastOpen.static boolean
isTcpFastOpenServerSideAvailable()
Returnstrue
if the io_uring native transport is both available and supports server-side TCP FastOpen.static java.lang.Throwable
unavailabilityCause()
-
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
-
isTcpFastOpenClientSideAvailable
public static boolean isTcpFastOpenClientSideAvailable()
Returnstrue
if the io_uring native transport is both available and supports client-side TCP FastOpen.- Returns:
true
if it's possible to use client-side TCP FastOpen via io_uring, otherwisefalse
.
-
isTcpFastOpenServerSideAvailable
public static boolean isTcpFastOpenServerSideAvailable()
Returnstrue
if the io_uring native transport is both available and supports server-side TCP FastOpen.- Returns:
true
if it's possible to use server-side TCP FastOpen via io_uring, otherwisefalse
.
-
ensureAvailability
public static void ensureAvailability()
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
-
-