Home / Class/ IoUringFixedBufferRingAllocator Class — netty Architecture

IoUringFixedBufferRingAllocator Class — netty Architecture

Architecture documentation for the IoUringFixedBufferRingAllocator class in IoUringFixedBufferRingAllocator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ba388306_7762_37ab_7514_56edea45aea5["IoUringFixedBufferRingAllocator"]
  8faaf5ec_b27f_c13f_137b_0830b8ebf1d4["IoUringFixedBufferRingAllocator.java"]
  ba388306_7762_37ab_7514_56edea45aea5 -->|defined in| 8faaf5ec_b27f_c13f_137b_0830b8ebf1d4
  cb299212_1ea1_e614_0123_042ff60b6295["IoUringFixedBufferRingAllocator()"]
  ba388306_7762_37ab_7514_56edea45aea5 -->|method| cb299212_1ea1_e614_0123_042ff60b6295
  bde184be_e501_0966_9344_e63330fcbebd["nextBufferSize()"]
  ba388306_7762_37ab_7514_56edea45aea5 -->|method| bde184be_e501_0966_9344_e63330fcbebd

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFixedBufferRingAllocator.java lines 26–66

public final class IoUringFixedBufferRingAllocator extends AbstractIoUringBufferRingAllocator {
    private final int bufferSize;

    /**
     * Create a new instance
     *
     * @param allocator         the {@link ByteBufAllocator} to use.
     * @param largeAllocation   {@code true} if we should do a large allocation for the whole buffer ring
     *                          and then slice out the buffers or {@code false} if we should do one allocation
     *                          per buffer.
     * @param bufferSize        the size of the buffers that are allocated.
     */
    public IoUringFixedBufferRingAllocator(ByteBufAllocator allocator, boolean largeAllocation, int bufferSize) {
        super(allocator, largeAllocation);
        this.bufferSize = ObjectUtil.checkPositive(bufferSize, "bufferSize");
    }

    /**
     * Create a new instance
     *
     * @param allocator     the {@link ByteBufAllocator} to use.
     * @param bufferSize    the size of the buffers that are allocated.
     */
    public IoUringFixedBufferRingAllocator(ByteBufAllocator allocator, int bufferSize) {
        this(allocator, false, bufferSize);
    }

    /**
     * Create a new instance
     *
     * @param bufferSize    the size of the buffers that are allocated.
     */
    public IoUringFixedBufferRingAllocator(int bufferSize) {
        this(ByteBufAllocator.DEFAULT, bufferSize);
    }

    @Override
    protected int nextBufferSize() {
        return bufferSize;
    }
}

Frequently Asked Questions

What is the IoUringFixedBufferRingAllocator class?
IoUringFixedBufferRingAllocator is a class in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFixedBufferRingAllocator.java.
Where is IoUringFixedBufferRingAllocator defined?
IoUringFixedBufferRingAllocator is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringFixedBufferRingAllocator.java at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free