Class IoUringFixedBufferRingAllocator

java.lang.Object
io.netty.channel.uring.AbstractIoUringBufferRingAllocator
io.netty.channel.uring.IoUringFixedBufferRingAllocator
All Implemented Interfaces:
IoUringBufferRingAllocator

public final class IoUringFixedBufferRingAllocator extends AbstractIoUringBufferRingAllocator
IoUringBufferRingAllocator implementation which uses a fixed size for the buffers that are returned by AbstractIoUringBufferRingAllocator.allocate().
  • Constructor Details

    • 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.
  • Method Details