Class IoUringAdaptiveBufferRingAllocator

    • Constructor Detail

      • IoUringAdaptiveBufferRingAllocator

        public IoUringAdaptiveBufferRingAllocator()
      • IoUringAdaptiveBufferRingAllocator

        public IoUringAdaptiveBufferRingAllocator​(io.netty.buffer.ByteBufAllocator allocator)
        Creates new instance.
        Parameters:
        allocator - the ByteBufAllocator to use.
      • IoUringAdaptiveBufferRingAllocator

        public IoUringAdaptiveBufferRingAllocator​(io.netty.buffer.ByteBufAllocator allocator,
                                                  int minimum,
                                                  int initial,
                                                  int maximum)
        Creates new instance.
        Parameters:
        allocator - the ByteBufAllocator to use for the allocations
        minimum - the inclusive lower bound of the expected buffer size
        initial - the initial buffer size when no feed back was received
        maximum - the inclusive upper bound of the expected buffer size
    • 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.