Package io.netty.channel.uring
Class IoUring
- java.lang.Object
-
- io.netty.channel.uring.IoUring
-
public final class IoUring extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
static boolean
isAcceptMultishotEnabled()
Returns if multi-shot ACCEPT is used or not.static boolean
isAvailable()
static boolean
isPollAddMultishotEnabled()
Returns if multi-shot POLL_ADD is used or not.static boolean
isRecvMultishotEnabled()
Returns if multi-shot RECV is used or not.static boolean
isRecvsendBundleEnabled()
Returns if RECVSEND bundles are used or not.static boolean
isRegisterBufferRingIncSupported()
Returns if it is supported to use an incremental buffer ring.static boolean
isRegisterBufferRingSupported()
Returns if it is supported to use a buffer ring.static boolean
isSpliceSupported()
Returns if SPLICE is supported or not.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
.
-
isSpliceSupported
public static boolean isSpliceSupported()
Returns if SPLICE is supported or not.- Returns:
true
if supported,false
otherwise.
-
isRegisterBufferRingSupported
public static boolean isRegisterBufferRingSupported()
Returns if it is supported to use a buffer ring.- Returns:
true
if supported,false
otherwise.
-
isRegisterBufferRingIncSupported
public static boolean isRegisterBufferRingIncSupported()
Returns if it is supported to use an incremental buffer ring.- Returns:
true
if supported,false
otherwise.
-
isAcceptMultishotEnabled
public static boolean isAcceptMultishotEnabled()
Returns if multi-shot ACCEPT is used or not.- Returns:
true
if enabled,false
otherwise.
-
isRecvMultishotEnabled
public static boolean isRecvMultishotEnabled()
Returns if multi-shot RECV is used or not.- Returns:
true
if enabled,false
otherwise.
-
isRecvsendBundleEnabled
public static boolean isRecvsendBundleEnabled()
Returns if RECVSEND bundles are used or not.- Returns:
true
if enabled,false
otherwise.
-
isPollAddMultishotEnabled
public static boolean isPollAddMultishotEnabled()
Returns if multi-shot POLL_ADD is used or not.- Returns:
true
if enabled,false
otherwise.
-
ensureAvailability
public static void ensureAvailability()
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
-
-