Home / Function/ testOnUnhandledInboundChannelInactive() — netty Function Reference

testOnUnhandledInboundChannelInactive() — netty Function Reference

Architecture documentation for the testOnUnhandledInboundChannelInactive() function in DefaultChannelPipelineTailTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73["testOnUnhandledInboundChannelInactive()"]
  1e1d5fac_cddb_8f70_03a2_361ddab1ee33["DefaultChannelPipelineTailTest"]
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73 -->|defined in| 1e1d5fac_cddb_8f70_03a2_361ddab1ee33
  801be731_1282_4e5c_5954_a6061d6a8654["MyChannelFactory()"]
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73 -->|calls| 801be731_1282_4e5c_5954_a6061d6a8654
  afbcb8fc_843a_b647_0bc1_53181c143d70["connect()"]
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73 -->|calls| afbcb8fc_843a_b647_0bc1_53181c143d70
  28af635f_4fd7_00c3_dde3_78acfec86689["MyChannel()"]
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73 -->|calls| 28af635f_4fd7_00c3_dde3_78acfec86689
  6bd4265b_3273_624f_53c3_f256991deb5f["onUnhandledInboundChannelInactive()"]
  a8aee91e_0e7c_21e7_d741_fcd118ff2e73 -->|calls| 6bd4265b_3273_624f_53c3_f256991deb5f
  style a8aee91e_0e7c_21e7_d741_fcd118ff2e73 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java lines 75–97

    @Test
    public void testOnUnhandledInboundChannelInactive() throws Exception {
        final CountDownLatch latch = new CountDownLatch(1);
        MyChannel myChannel = new MyChannel() {
            @Override
            protected void onUnhandledInboundChannelInactive() {
                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();

        channel.close().syncUninterruptibly();

        assertTrue(latch.await(1L, TimeUnit.SECONDS));
    }

Domain

Subdomains

Frequently Asked Questions

What does testOnUnhandledInboundChannelInactive() do?
testOnUnhandledInboundChannelInactive() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java.
Where is testOnUnhandledInboundChannelInactive() defined?
testOnUnhandledInboundChannelInactive() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java at line 75.
What does testOnUnhandledInboundChannelInactive() call?
testOnUnhandledInboundChannelInactive() calls 4 function(s): MyChannel, MyChannelFactory, connect, onUnhandledInboundChannelInactive.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free