Home / Function/ channelReadComplete() — netty Function Reference

channelReadComplete() — netty Function Reference

Architecture documentation for the channelReadComplete() function in MessageAggregator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  72349001_71dd_a5f2_05fd_3ab270240969["channelReadComplete()"]
  5eb281df_9169_db16_7477_6d4eba81b483["MessageAggregator"]
  72349001_71dd_a5f2_05fd_3ab270240969 -->|defined in| 5eb281df_9169_db16_7477_6d4eba81b483
  style 72349001_71dd_a5f2_05fd_3ab270240969 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/MessageAggregator.java lines 419–428

    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
        // We might need keep reading the channel until the full message is aggregated.
        //
        // See https://github.com/netty/netty/issues/6583
        if (currentMessage != null && !ctx.channel().config().isAutoRead()) {
            ctx.read();
        }
        ctx.fireChannelReadComplete();
    }

Domain

Subdomains

Frequently Asked Questions

What does channelReadComplete() do?
channelReadComplete() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/MessageAggregator.java.
Where is channelReadComplete() defined?
channelReadComplete() is defined in codec-base/src/main/java/io/netty/handler/codec/MessageAggregator.java at line 419.

Analyze Your Own Codebase

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

Try Supermodel Free