Class IoUringSharedIovArray


  • final class IoUringSharedIovArray
    extends java.lang.Object
    The iovec memory of an IoUringIoHandler, shared by all writes until the next submit.

    Each write gets its own empty IovArray that starts after the entries of the previous writes, so the IOV_MAX limit of an IovArray applies to each write and not to all of them together.

    • Field Detail

      • internalBuffer

        private final ByteBuf internalBuffer
      • numEntries

        private final int numEntries
      • current

        private int current
    • Constructor Detail

      • IoUringSharedIovArray

        IoUringSharedIovArray​(int numEntries)
    • Method Detail

      • nextStart

        private int nextStart()
      • isFull

        boolean isFull()
        Returns true if the next write can not add any entry.
      • clear

        void clear()
        Must only be called once the kernel does not read the entries anymore, which is after the submit.
      • release

        void release()