Home / Type/ AllocatorType Type — netty Architecture

AllocatorType Type — netty Architecture

Architecture documentation for the AllocatorType type/interface in ByteBufAllocatorAllocPatternBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1f6d3071_7437_d7bf_ab17_b88e447207af["AllocatorType"]
  7d4fb9c8_3875_0393_13aa_871ca0c13647["ByteBufAllocatorAllocPatternBenchmark.java"]
  1f6d3071_7437_d7bf_ab17_b88e447207af -->|defined in| 7d4fb9c8_3875_0393_13aa_871ca0c13647
  style 1f6d3071_7437_d7bf_ab17_b88e447207af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java lines 53–66

    public enum AllocatorType {
        ADAPTIVE(AdaptiveByteBufAllocator::new),
        POOLED(() -> PooledByteBufAllocator.DEFAULT);

        private final Supplier<ByteBufAllocator> factory;

        AllocatorType(Supplier<ByteBufAllocator> factory) {
            this.factory = factory;
        }

        private ByteBufAllocator create() {
            return factory.get();
        }
    }

Frequently Asked Questions

What is the AllocatorType type?
AllocatorType is a type/interface in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java.
Where is AllocatorType defined?
AllocatorType is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java at line 53.

Analyze Your Own Codebase

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

Try Supermodel Free