Home / Function/ LocalPool() — netty Function Reference

LocalPool() — netty Function Reference

Architecture documentation for the LocalPool() function in Recycler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  32f03d18_b521_34c0_4e3d_4eb52b3d02ca["LocalPool()"]
  35ba43da_5a98_091e_3833_ccfc393fe9ff["LocalPool"]
  32f03d18_b521_34c0_4e3d_4eb52b3d02ca -->|defined in| 35ba43da_5a98_091e_3833_ccfc393fe9ff
  ce3244a6_1286_60c2_dc87_1b0d59a6e5c1["createExternalMcPool()"]
  32f03d18_b521_34c0_4e3d_4eb52b3d02ca -->|calls| ce3244a6_1286_60c2_dc87_1b0d59a6e5c1
  7abe3ee7_1c1d_3f3c_5cef_5da576a66c18["createExternalScPool()"]
  32f03d18_b521_34c0_4e3d_4eb52b3d02ca -->|calls| 7abe3ee7_1c1d_3f3c_5cef_5da576a66c18
  style 32f03d18_b521_34c0_4e3d_4eb52b3d02ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/Recycler.java lines 508–518

        LocalPool(int maxCapacity) {
            // if there's no capacity, we need to never allocate pooled objects.
            // if there's capacity, because there is a shared pool, we always pool them, since we cannot trust the
            // thread unsafe ratio counter.
            this.ratioInterval = maxCapacity == 0? -1 : 0;
            this.owner = null;
            batch = null;
            batchSize = 0;
            pooledHandles = createExternalMcPool(maxCapacity);
            ratioCounter = 0;
        }

Domain

Subdomains

Frequently Asked Questions

What does LocalPool() do?
LocalPool() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/Recycler.java.
Where is LocalPool() defined?
LocalPool() is defined in common/src/main/java/io/netty/util/Recycler.java at line 508.
What does LocalPool() call?
LocalPool() calls 2 function(s): createExternalMcPool, createExternalScPool.

Analyze Your Own Codebase

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

Try Supermodel Free