notifyReadComplete() — netty Function Reference
Architecture documentation for the notifyReadComplete() function in AbstractHttp2StreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4373f9ff_b341_55e0_625c_45e60ac17922["notifyReadComplete()"] 2656dcfe_5cdb_7c7d_bc25_312393fe2e05["Http2ChannelUnsafe"] 4373f9ff_b341_55e0_625c_45e60ac17922 -->|defined in| 2656dcfe_5cdb_7c7d_bc25_312393fe2e05 733793a3_8d1b_0b74_1c34_71e2c7d99a3e["fireChildRead()"] 733793a3_8d1b_0b74_1c34_71e2c7d99a3e -->|calls| 4373f9ff_b341_55e0_625c_45e60ac17922 3086b5f9_e8c1_0eb5_a6a4_4ba003f3538e["fireChildReadComplete()"] 3086b5f9_e8c1_0eb5_a6a4_4ba003f3538e -->|calls| 4373f9ff_b341_55e0_625c_45e60ac17922 8c7ec287_e512_c36c_39d6_33286068a273["doBeginRead()"] 8c7ec287_e512_c36c_39d6_33286068a273 -->|calls| 4373f9ff_b341_55e0_625c_45e60ac17922 7d8bf346_9376_a06b_6a18_a4a512830328["resetReadStatus()"] 4373f9ff_b341_55e0_625c_45e60ac17922 -->|calls| 7d8bf346_9376_a06b_6a18_a4a512830328 17bb5ba9_6675_72af_80ec_e5f5d89f1f8c["flush()"] 4373f9ff_b341_55e0_625c_45e60ac17922 -->|calls| 17bb5ba9_6675_72af_80ec_e5f5d89f1f8c 8a1829a9_4ff0_0fdc_6f6f_98fc1f844f84["closeForcibly()"] 4373f9ff_b341_55e0_625c_45e60ac17922 -->|calls| 8a1829a9_4ff0_0fdc_6f6f_98fc1f844f84 style 4373f9ff_b341_55e0_625c_45e60ac17922 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 933–955
void notifyReadComplete(RecvByteBufAllocator.Handle allocHandle, boolean forceReadComplete,
boolean inReadLoop) {
if (!readCompletePending && !forceReadComplete) {
return;
}
// Set to false just in case we added the channel multiple times before.
readCompletePending = false;
if (!inReadLoop) {
// While in the read loop we reset the state after calling pipeline methods to prevent StackOverflow.
resetReadStatus();
}
allocHandle.readComplete();
pipeline().fireChannelReadComplete();
// Reading data may result in frames being written (e.g. WINDOW_UPDATE, RST, etc..). If the parent
// channel is not currently reading we need to force a flush at the child channel, because we cannot
// rely upon flush occurring in channelReadComplete on the parent channel.
flush();
if (readEOS) {
unsafe.closeForcibly();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does notifyReadComplete() do?
notifyReadComplete() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is notifyReadComplete() defined?
notifyReadComplete() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 933.
What does notifyReadComplete() call?
notifyReadComplete() calls 3 function(s): closeForcibly, flush, resetReadStatus.
What calls notifyReadComplete()?
notifyReadComplete() is called by 3 function(s): doBeginRead, fireChildRead, fireChildReadComplete.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free