Home / Function/ channelRead() — netty Function Reference

channelRead() — netty Function Reference

Architecture documentation for the channelRead() function in AbstractIntegrationTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5b2a0615_798d_5801_6548_0143e43f55b0["channelRead()"]
  23f03573_b851_c870_3be9_7c0aa62308f5["HugeDecompressIncomingHandler"]
  5b2a0615_798d_5801_6548_0143e43f55b0 -->|defined in| 23f03573_b851_c870_3be9_7c0aa62308f5
  style 5b2a0615_798d_5801_6548_0143e43f55b0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractIntegrationTest.java lines 247–259

        @Override
        public void channelRead(ChannelHandlerContext ctx, Object msg) {
            ByteBuf buf = (ByteBuf) msg;
            total += buf.readableBytes();
            try {
                buf.forEachByte(this);
                PooledByteBufAllocator allocator = (PooledByteBufAllocator) ctx.alloc();
                assertThat(allocator.metric().usedHeapMemory()).isLessThan(memoryLimit);
                assertThat(allocator.metric().usedDirectMemory()).isLessThan(memoryLimit);
            } finally {
                buf.release();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does channelRead() do?
channelRead() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractIntegrationTest.java.
Where is channelRead() defined?
channelRead() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/AbstractIntegrationTest.java at line 247.

Analyze Your Own Codebase

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

Try Supermodel Free