channelReadComplete() — netty Function Reference
Architecture documentation for the channelReadComplete() function in LocalChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 75f6b91d_1b44_ecad_973f_85b5a2d36fe5["channelReadComplete()"] 03969917_60dc_0ba6_a8df_e1a08c81b0f8["ChannelReadHandler"] 75f6b91d_1b44_ecad_973f_85b5a2d36fe5 -->|defined in| 03969917_60dc_0ba6_a8df_e1a08c81b0f8 style 75f6b91d_1b44_ecad_973f_85b5a2d36fe5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/local/LocalChannelTest.java lines 1224–1246
@Override
public void channelReadComplete(final ChannelHandlerContext ctx) {
assertEquals(1, read);
latch.countDown();
if (latch.getCount() > 0) {
if (!autoRead) {
// The read will be scheduled 100ms in the future to ensure we not receive any
// channelRead calls in the meantime.
ctx.executor().schedule(new Runnable() {
@Override
public void run() {
read = 0;
ctx.read();
}
}, 100, TimeUnit.MILLISECONDS);
} else {
read = 0;
}
} else {
read = 0;
}
ctx.fireChannelReadComplete();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelReadComplete() do?
channelReadComplete() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java.
Where is channelReadComplete() defined?
channelReadComplete() is defined in transport/src/test/java/io/netty/channel/local/LocalChannelTest.java at line 1224.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free