Home / Function/ channelReadComplete() — netty Function Reference

channelReadComplete() — netty Function Reference

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

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  aae0aa7f_2029_08c9_f24d_05375655c19d["channelReadComplete()"]
  a9ab361d_2417_0366_d9d0_ae1adb2145dc["Http2ConnectionHandler"]
  aae0aa7f_2029_08c9_f24d_05375655c19d -->|defined in| a9ab361d_2417_0366_d9d0_ae1adb2145dc
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e["channelActive()"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|calls| aae0aa7f_2029_08c9_f24d_05375655c19d
  a88a1d92_90a2_7d96_f945_50da838f9124["channelReadComplete0()"]
  aae0aa7f_2029_08c9_f24d_05375655c19d -->|calls| a88a1d92_90a2_7d96_f945_50da838f9124
  fcfd6790_7b31_2514_7e7e_6ee61c0daff9["flush()"]
  aae0aa7f_2029_08c9_f24d_05375655c19d -->|calls| fcfd6790_7b31_2514_7e7e_6ee61c0daff9
  style aae0aa7f_2029_08c9_f24d_05375655c19d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 551–561

    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
        // Trigger flush after read on the assumption that flush is cheap if there is nothing to write and that
        // for flow-control the read may release window that causes data to be written that can now be flushed.
        try {
            // First call channelReadComplete0(...) as this may produce more data that we want to flush
            channelReadComplete0(ctx);
        } finally {
            flush(ctx);
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does channelReadComplete() do?
channelReadComplete() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is channelReadComplete() defined?
channelReadComplete() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 551.
What does channelReadComplete() call?
channelReadComplete() calls 2 function(s): channelReadComplete0, flush.
What calls channelReadComplete()?
channelReadComplete() is called by 1 function(s): channelActive.

Analyze Your Own Codebase

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

Try Supermodel Free