testOnUnhandledInboundChannelActive() — netty Function Reference
Architecture documentation for the testOnUnhandledInboundChannelActive() function in DefaultChannelPipelineTailTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a6acfbdc_9124_9e19_c7f9_ab047922ce48["testOnUnhandledInboundChannelActive()"] 1e1d5fac_cddb_8f70_03a2_361ddab1ee33["DefaultChannelPipelineTailTest"] a6acfbdc_9124_9e19_c7f9_ab047922ce48 -->|defined in| 1e1d5fac_cddb_8f70_03a2_361ddab1ee33 801be731_1282_4e5c_5954_a6061d6a8654["MyChannelFactory()"] a6acfbdc_9124_9e19_c7f9_ab047922ce48 -->|calls| 801be731_1282_4e5c_5954_a6061d6a8654 afbcb8fc_843a_b647_0bc1_53181c143d70["connect()"] a6acfbdc_9124_9e19_c7f9_ab047922ce48 -->|calls| afbcb8fc_843a_b647_0bc1_53181c143d70 28af635f_4fd7_00c3_dde3_78acfec86689["MyChannel()"] a6acfbdc_9124_9e19_c7f9_ab047922ce48 -->|calls| 28af635f_4fd7_00c3_dde3_78acfec86689 325bb5e1_3a14_9968_239d_3dc47dd0c98d["onUnhandledInboundChannelActive()"] a6acfbdc_9124_9e19_c7f9_ab047922ce48 -->|calls| 325bb5e1_3a14_9968_239d_3dc47dd0c98d style a6acfbdc_9124_9e19_c7f9_ab047922ce48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java lines 49–73
@Test
public void testOnUnhandledInboundChannelActive() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
MyChannel myChannel = new MyChannel() {
@Override
protected void onUnhandledInboundChannelActive() {
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 {
assertTrue(latch.await(1L, TimeUnit.SECONDS));
} finally {
channel.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testOnUnhandledInboundChannelActive() do?
testOnUnhandledInboundChannelActive() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java.
Where is testOnUnhandledInboundChannelActive() defined?
testOnUnhandledInboundChannelActive() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java at line 49.
What does testOnUnhandledInboundChannelActive() call?
testOnUnhandledInboundChannelActive() calls 4 function(s): MyChannel, MyChannelFactory, connect, onUnhandledInboundChannelActive.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free