Class IoUring


  • public final class IoUring
    extends java.lang.Object
    • Method Detail

      • isAvailable

        public static boolean isAvailable()
      • isTcpFastOpenClientSideAvailable

        public static boolean isTcpFastOpenClientSideAvailable()
        Returns true 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, otherwise false.
      • isTcpFastOpenServerSideAvailable

        public static boolean isTcpFastOpenServerSideAvailable()
        Returns true 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, otherwise false.
      • 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()