Home / Function/ channelActive() — netty Function Reference

channelActive() — netty Function Reference

Architecture documentation for the channelActive() function in QuicStreamChannelCloseTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  86f1d1cf_a3c8_db45_f8e7_99ec08ec5ef7["channelActive()"]
  fcd68d9c_7d7d_51eb_a9e7_a63dc07db7e9["StreamCreationAndTearDownHandler"]
  86f1d1cf_a3c8_db45_f8e7_99ec08ec5ef7 -->|defined in| fcd68d9c_7d7d_51eb_a9e7_a63dc07db7e9
  19cf33d2_837f_e5b6_a1a8_78a9d2920df8["channelActive()"]
  19cf33d2_837f_e5b6_a1a8_78a9d2920df8 -->|calls| 86f1d1cf_a3c8_db45_f8e7_99ec08ec5ef7
  19cf33d2_837f_e5b6_a1a8_78a9d2920df8["channelActive()"]
  86f1d1cf_a3c8_db45_f8e7_99ec08ec5ef7 -->|calls| 19cf33d2_837f_e5b6_a1a8_78a9d2920df8
  style 86f1d1cf_a3c8_db45_f8e7_99ec08ec5ef7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java lines 239–259

        @Override
        public void channelActive(ChannelHandlerContext ctx) {
            super.channelActive(ctx);
            QuicChannel channel = (QuicChannel) ctx.channel();
            channel.createStream(type, new ChannelInboundHandlerAdapter() {
                @Override
                public void channelActive(ChannelHandlerContext ctx)  {
                    final ChannelFuture future;
                    if (halfClose) {
                        future = ((QuicStreamChannel) ctx.channel()).shutdownOutput();
                    } else {
                        future = ctx.channel().close();
                    }
                    future.addListener(f -> {
                        ctx.channel().writeAndFlush("Unsupported message").addListener(wf -> {
                            streamPromise.setFailure(wf.cause());
                        });
                    });
                }
            });
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does channelActive() do?
channelActive() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java.
Where is channelActive() defined?
channelActive() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamChannelCloseTest.java at line 239.
What does channelActive() call?
channelActive() calls 1 function(s): channelActive.
What calls channelActive()?
channelActive() is called by 1 function(s): channelActive.

Analyze Your Own Codebase

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

Try Supermodel Free