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 voidensureAvailability()static booleanisAcceptMultishotEnabled()Returns if multi-shot ACCEPT is used or not.static booleanisAvailable()static booleanisPollAddMultishotEnabled()Returns if multi-shot POLL_ADD is used or not.static booleanisRecvMultishotEnabled()Returns if multi-shot RECV is used or not.static booleanisRecvsendBundleEnabled()Returns if RECVSEND bundles are used or not.static booleanisRegisterBufferRingIncSupported()Returns if it is supported to use an incremental buffer ring.static booleanisRegisterBufferRingSupported()Returns if it is supported to use a buffer ring.static booleanisSpliceSupported()Returns if SPLICE is supported or not.static booleanisTcpFastOpenClientSideAvailable()Returnstrueif the io_uring native transport is both available and supports client-side TCP FastOpen.static booleanisTcpFastOpenServerSideAvailable()Returnstrueif the io_uring native transport is both available and supports server-side TCP FastOpen.static java.lang.ThrowableunavailabilityCause()
-
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
-
isTcpFastOpenClientSideAvailable
public static boolean isTcpFastOpenClientSideAvailable()
Returnstrueif the io_uring native transport is both available and supports client-side TCP FastOpen.- Returns:
trueif it's possible to use client-side TCP FastOpen via io_uring, otherwisefalse.
-
isTcpFastOpenServerSideAvailable
public static boolean isTcpFastOpenServerSideAvailable()
Returnstrueif the io_uring native transport is both available and supports server-side TCP FastOpen.- Returns:
trueif 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:
trueif supported,falseotherwise.
-
isRegisterBufferRingSupported
public static boolean isRegisterBufferRingSupported()
Returns if it is supported to use a buffer ring.- Returns:
trueif supported,falseotherwise.
-
isRegisterBufferRingIncSupported
public static boolean isRegisterBufferRingIncSupported()
Returns if it is supported to use an incremental buffer ring.- Returns:
trueif supported,falseotherwise.
-
isAcceptMultishotEnabled
public static boolean isAcceptMultishotEnabled()
Returns if multi-shot ACCEPT is used or not.- Returns:
trueif enabled,falseotherwise.
-
isRecvMultishotEnabled
public static boolean isRecvMultishotEnabled()
Returns if multi-shot RECV is used or not.- Returns:
trueif enabled,falseotherwise.
-
isRecvsendBundleEnabled
public static boolean isRecvsendBundleEnabled()
Returns if RECVSEND bundles are used or not.- Returns:
trueif enabled,falseotherwise.
-
isPollAddMultishotEnabled
public static boolean isPollAddMultishotEnabled()
Returns if multi-shot POLL_ADD is used or not.- Returns:
trueif enabled,falseotherwise.
-
ensureAvailability
public static void ensureAvailability()
-
unavailabilityCause
public static java.lang.Throwable unavailabilityCause()
-
-