onDataRead() — netty Function Reference
Architecture documentation for the onDataRead() function in HelloWorldHttp2Handler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 20537d4b_6e78_aaec_bd7e_1852c0565d54["onDataRead()"] 679cb2c0_10f0_ca95_5e26_6209ae084a9f["HelloWorldHttp2Handler"] 20537d4b_6e78_aaec_bd7e_1852c0565d54 -->|defined in| 679cb2c0_10f0_ca95_5e26_6209ae084a9f 133bb4fc_5955_8367_566e_0a5a5e4eeeae["sendResponse()"] 20537d4b_6e78_aaec_bd7e_1852c0565d54 -->|calls| 133bb4fc_5955_8367_566e_0a5a5e4eeeae style 20537d4b_6e78_aaec_bd7e_1852c0565d54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java lines 98–105
@Override
public int onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) {
int processed = data.readableBytes() + padding;
if (endOfStream) {
sendResponse(ctx, streamId, data.retain());
}
return processed;
}
Domain
Subdomains
Defined In
Calls
Source
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/server/HelloWorldHttp2Handler.java.
Where is onDataRead() defined?
onDataRead() is defined in example/src/main/java/io/netty/example/http2/helloworld/server/HelloWorldHttp2Handler.java at line 98.
What does onDataRead() call?
onDataRead() calls 1 function(s): sendResponse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free