testOnUnhandledInboundReadComplete() — netty Function Reference
Architecture documentation for the testOnUnhandledInboundReadComplete() function in DefaultChannelPipelineTailTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8dbac1db_bf55_0839_112d_06934f3eca62["testOnUnhandledInboundReadComplete()"] 1e1d5fac_cddb_8f70_03a2_361ddab1ee33["DefaultChannelPipelineTailTest"] 8dbac1db_bf55_0839_112d_06934f3eca62 -->|defined in| 1e1d5fac_cddb_8f70_03a2_361ddab1ee33 1408c238_1a48_e769_d3a5_453003339b3c["onUnhandledInboundReadComplete()"] 8dbac1db_bf55_0839_112d_06934f3eca62 -->|calls| 1408c238_1a48_e769_d3a5_453003339b3c 801be731_1282_4e5c_5954_a6061d6a8654["MyChannelFactory()"] 8dbac1db_bf55_0839_112d_06934f3eca62 -->|calls| 801be731_1282_4e5c_5954_a6061d6a8654 afbcb8fc_843a_b647_0bc1_53181c143d70["connect()"] 8dbac1db_bf55_0839_112d_06934f3eca62 -->|calls| afbcb8fc_843a_b647_0bc1_53181c143d70 28af635f_4fd7_00c3_dde3_78acfec86689["MyChannel()"] 8dbac1db_bf55_0839_112d_06934f3eca62 -->|calls| 28af635f_4fd7_00c3_dde3_78acfec86689 style 8dbac1db_bf55_0839_112d_06934f3eca62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java lines 157–182
@Test
public void testOnUnhandledInboundReadComplete() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
MyChannel myChannel = new MyChannel() {
@Override
protected void onUnhandledInboundReadComplete() {
latch.countDown();
}
};
Bootstrap bootstrap = new Bootstrap()
.channelFactory(new MyChannelFactory(myChannel))
.group(GROUP)
.handler(new ChannelInboundHandlerAdapter())
.remoteAddress(new InetSocketAddress(0));
Channel channel = bootstrap.connect()
.sync().channel();
try {
channel.pipeline().fireChannelReadComplete();
assertTrue(latch.await(1L, TimeUnit.SECONDS));
} finally {
channel.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOnUnhandledInboundReadComplete() do?
testOnUnhandledInboundReadComplete() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java.
Where is testOnUnhandledInboundReadComplete() defined?
testOnUnhandledInboundReadComplete() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java at line 157.
What does testOnUnhandledInboundReadComplete() call?
testOnUnhandledInboundReadComplete() calls 4 function(s): MyChannel, MyChannelFactory, connect, onUnhandledInboundReadComplete.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free