Home / Class/ NormalMemoryRegionCache Class — netty Architecture

NormalMemoryRegionCache Class — netty Architecture

Architecture documentation for the NormalMemoryRegionCache class in PoolThreadCache.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4b9d81c3_928f_89bf_a788_0189c90728d2["NormalMemoryRegionCache"]
  2a7d96ed_6f58_dca1_f092_d9cac20e28ae["PoolThreadCache.java"]
  4b9d81c3_928f_89bf_a788_0189c90728d2 -->|defined in| 2a7d96ed_6f58_dca1_f092_d9cac20e28ae
  656a10fa_b6f4_0a55_1f9f_7437796dc869["NormalMemoryRegionCache()"]
  4b9d81c3_928f_89bf_a788_0189c90728d2 -->|method| 656a10fa_b6f4_0a55_1f9f_7437796dc869
  e3602d3b_35c5_118b_c936_18fa5ef5b490["initBuf()"]
  4b9d81c3_928f_89bf_a788_0189c90728d2 -->|method| e3602d3b_35c5_118b_c936_18fa5ef5b490

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 315–326

    private static final class NormalMemoryRegionCache<T> extends MemoryRegionCache<T> {
        NormalMemoryRegionCache(int size) {
            super(size, SizeClass.Normal);
        }

        @Override
        protected void initBuf(
                PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity,
                PoolThreadCache threadCache) {
            chunk.initBuf(buf, nioBuffer, handle, reqCapacity, threadCache, true);
        }
    }

Frequently Asked Questions

What is the NormalMemoryRegionCache class?
NormalMemoryRegionCache is a class in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is NormalMemoryRegionCache defined?
NormalMemoryRegionCache is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 315.

Analyze Your Own Codebase

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

Try Supermodel Free