Class IoUringFixedBufferRingAllocator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ByteBuf allocate()
      Creates a new receive buffer to use by the buffer ring.
      void lastBytesRead​(int attempted, int actual)
      Set the bytes that have been read for the last read operation that was full-filled out of the buffer ring.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IoUringFixedBufferRingAllocator

        public IoUringFixedBufferRingAllocator​(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.