Home / Function/ onDataRead() — netty Function Reference

onDataRead() — netty Function Reference

Architecture documentation for the onDataRead() function in HelloWorldHttp2Handler.java from the netty codebase.

Function java Buffer Search calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  b678494b_8b69_9e9a_c231_26c69c0f78ce["onDataRead()"]
  c8a162e3_eede_4376_b493_eb1ed405d206["HelloWorldHttp2Handler"]
  b678494b_8b69_9e9a_c231_26c69c0f78ce -->|defined in| c8a162e3_eede_4376_b493_eb1ed405d206
  3e6fdf00_5772_8ac0_c003_2d5abd586226["channelRead()"]
  3e6fdf00_5772_8ac0_c003_2d5abd586226 -->|calls| b678494b_8b69_9e9a_c231_26c69c0f78ce
  585bb4b9_901b_e7dd_4a7b_0410fd16cb04["sendResponse()"]
  b678494b_8b69_9e9a_c231_26c69c0f78ce -->|calls| 585bb4b9_901b_e7dd_4a7b_0410fd16cb04
  style b678494b_8b69_9e9a_c231_26c69c0f78ce fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java lines 69–76

    private static void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {
        if (data.isEndStream()) {
            sendResponse(ctx, data.content());
        } else {
            // We do not send back the response to the remote-peer, so we need to release it.
            data.release();
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does onDataRead() do?
onDataRead() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java.
Where is onDataRead() defined?
onDataRead() is defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java at line 69.
What does onDataRead() call?
onDataRead() calls 1 function(s): sendResponse.
What calls onDataRead()?
onDataRead() is called by 1 function(s): channelRead.

Analyze Your Own Codebase

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

Try Supermodel Free