Home / Type/ BufferType Type — netty Architecture

BufferType Type — netty Architecture

Architecture documentation for the BufferType type/interface in AbstractSslHandlerThroughputBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9cbd149d_5c02_d814_0f33_fde4424d7bbc["BufferType"]
  b8181328_b706_08b5_a27e_3fad8e0e79f7["AbstractSslHandlerThroughputBenchmark.java"]
  9cbd149d_5c02_d814_0f33_fde4424d7bbc -->|defined in| b8181328_b706_08b5_a27e_3fad8e0e79f7
  style 9cbd149d_5c02_d814_0f33_fde4424d7bbc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerThroughputBenchmark.java lines 35–50

    public enum BufferType {
        HEAP {
            @Override
            ByteBuf newBuffer(ByteBufAllocator allocator, int size) {
                return allocator.heapBuffer(size);
            }
        },
        DIRECT {
            @Override
            ByteBuf newBuffer(ByteBufAllocator allocator, int size) {
                return allocator.directBuffer(size);
            }
        };

        abstract ByteBuf newBuffer(ByteBufAllocator allocator, int size);
    }

Frequently Asked Questions

What is the BufferType type?
BufferType is a type/interface in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerThroughputBenchmark.java.
Where is BufferType defined?
BufferType is defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerThroughputBenchmark.java at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free