channelReadComplete() — netty Function Reference
Architecture documentation for the channelReadComplete() function in QuicCodecDispatcher.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 95d1ff13_107e_5366_e7f6_d5916dc4618a["channelReadComplete()"] 550dceea_3958_0e89_1405_ee683da73397["QuicCodecDispatcher"] 95d1ff13_107e_5366_e7f6_d5916dc4618a -->|defined in| 550dceea_3958_0e89_1405_ee683da73397 23c0d12a_8eff_cdbd_734b_cfdcfb62f546["fireChannelReadCompleteIfNeeded()"] 95d1ff13_107e_5366_e7f6_d5916dc4618a -->|calls| 23c0d12a_8eff_cdbd_734b_cfdcfb62f546 style 95d1ff13_107e_5366_e7f6_d5916dc4618a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicCodecDispatcher.java lines 136–155
@Override
public final void channelReadComplete(ChannelHandlerContext ctx) {
// Loop over all ChannelHandlerContextDispatchers and ensure fireChannelReadComplete() is called if required.
// We use and old style for loop as CopyOnWriteArrayList implements RandomAccess and so we can
// reduce the object creations.
boolean dispatchForOwnContextAlready = false;
for (int i = 0; i < contextList.size(); i++) {
ChannelHandlerContextDispatcher ctxDispatcher = contextList.get(i);
if (ctxDispatcher != null) {
boolean fired = ctxDispatcher.fireChannelReadCompleteIfNeeded();
if (fired && !dispatchForOwnContextAlready) {
// Check if we dispatched to ctx so if we didnt at the end we can do it manually.
dispatchForOwnContextAlready = ctx.equals(ctxDispatcher.ctx);
}
}
}
if (!dispatchForOwnContextAlready) {
ctx.fireChannelReadComplete();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelReadComplete() do?
channelReadComplete() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicCodecDispatcher.java.
Where is channelReadComplete() defined?
channelReadComplete() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicCodecDispatcher.java at line 136.
What does channelReadComplete() call?
channelReadComplete() calls 1 function(s): fireChannelReadCompleteIfNeeded.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free