Class IoUringFixedBufferRingAllocator

    • Constructor Detail

      • IoUringFixedBufferRingAllocator

        public IoUringFixedBufferRingAllocator​(ByteBufAllocator allocator,
                                               boolean largeAllocation,
                                               int bufferSize)
        Create a new instance
        Parameters:
        allocator - the ByteBufAllocator to use.
        largeAllocation - true if we should do a large allocation for the whole buffer ring and then slice out the buffers or false if we should do one allocation per buffer.
        bufferSize - the size of the buffers that are allocated.
      • 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.