Class IoUringFixedBufferRingAllocator

    • Constructor Detail

      • IoUringFixedBufferRingAllocator

        public IoUringFixedBufferRingAllocator​(io.netty.buffer.ByteBufAllocator allocator,
                                               int bufferSize)
        Create a new instance
        Parameters:
        allocator - the ByteBufAllocator to use.
        bufferSize - the size of the buffers that are allocated.
      • IoUringFixedBufferRingAllocator

        public IoUringFixedBufferRingAllocator​(int bufferSize)
        Create a new instance
        Parameters:
        bufferSize - the size of the buffers that are allocated.
    • Method Detail

      • lastBytesRead

        public void lastBytesRead​(int attempted,
                                  int actual)
        Description copied from interface: IoUringBufferRingAllocator
        Set the bytes that have been read for the last read operation that was full-filled out of the buffer ring.
        Specified by:
        lastBytesRead in interface IoUringBufferRingAllocator
        Parameters:
        attempted - the attempted bytes to read.
        actual - the number of bytes that could be read.