Home / Function/ testOnUnhandledInboundWritabilityChanged() — netty Function Reference

testOnUnhandledInboundWritabilityChanged() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTailTest.java lines 211–236

    @Test
    public void testOnUnhandledInboundWritabilityChanged() throws Exception {
        final CountDownLatch latch = new CountDownLatch(1);
        MyChannel myChannel = new MyChannel() {
            @Override
            protected void onUnhandledInboundWritabilityChanged() {
                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().fireChannelWritabilityChanged();
            assertTrue(latch.await(1L, TimeUnit.SECONDS));
        } finally {
            channel.close();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free