Home / Type/ CumulationTestScenario Type — netty Architecture

CumulationTestScenario Type — netty Architecture

Architecture documentation for the CumulationTestScenario type/interface in SslHandlerCoalescingBufferQueueTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d3d19bb2_44d2_77d4_fafa_042d46e54591["CumulationTestScenario"]
  91f6ae8f_2bae_f77c_970c_844118679dc6["SslHandlerCoalescingBufferQueueTest.java"]
  d3d19bb2_44d2_77d4_fafa_042d46e54591 -->|defined in| 91f6ae8f_2bae_f77c_970c_844118679dc6
  style d3d19bb2_44d2_77d4_fafa_042d46e54591 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslHandlerCoalescingBufferQueueTest.java lines 71–95

    enum CumulationTestScenario {
        BASIC_NIO_BUFFER(new Supplier() {
            @Override
            public ByteBuf get() {
                return Unpooled.wrappedBuffer(createNioBuffer());
            }
        }, NO_WRAPPER),
        READ_ONLY_AND_DUPLICATE_NIO_BUFFER(new Supplier() {
            @Override
            public ByteBuf get() {
                return Unpooled.wrappedBuffer(createNioBuffer().asReadOnlyBuffer());
            }
        }, DUPLICATE_WRAPPER),
        BASIC_DIRECT_BUFFER(BYTEBUF_SUPPLIER, NO_WRAPPER),
        DUPLICATE_DIRECT_BUFFER(BYTEBUF_SUPPLIER, DUPLICATE_WRAPPER),
        SLICED_DIRECT_BUFFER(BYTEBUF_SUPPLIER, SLICE_WRAPPER);

        final Supplier<ByteBuf> bufferSupplier;
        final Function<ByteBuf, ByteBuf> bufferWrapper;

        CumulationTestScenario(Supplier<ByteBuf> bufferSupplier, Function<ByteBuf, ByteBuf> bufferWrapper) {
            this.bufferSupplier = bufferSupplier;
            this.bufferWrapper = bufferWrapper;
        }
    }

Frequently Asked Questions

What is the CumulationTestScenario type?
CumulationTestScenario is a type/interface in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerCoalescingBufferQueueTest.java.
Where is CumulationTestScenario defined?
CumulationTestScenario is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerCoalescingBufferQueueTest.java at line 71.

Analyze Your Own Codebase

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

Try Supermodel Free