Interface AdaptivePoolingAllocator.ChunkAllocator

    • Method Detail

      • allocate

        AbstractByteBuf allocate​(int initialCapacity,
                                 int maxCapacity)
        Allocate a buffer for a chunk. This can be any kind of AbstractByteBuf implementation.
        Parameters:
        initialCapacity - The initial capacity of the returned AbstractByteBuf.
        maxCapacity - The maximum capacity of the returned AbstractByteBuf.
        Returns:
        The buffer that represents the chunk memory.