Home / Function/ channelActive() — netty Function Reference

channelActive() — netty Function Reference

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

Function java Buffer Allocators calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e["channelActive()"]
  83642a58_aebe_1c6a_ae68_9c2017752662["PrefaceDecoder"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|defined in| 83642a58_aebe_1c6a_ae68_9c2017752662
  8dee1709_f11e_ea83_5fa1_f29f61281e95["channelActive()"]
  8dee1709_f11e_ea83_5fa1_f29f61281e95 -->|calls| f123ca8d_4393_d5af_4aa4_bd6bee27eb0e
  fedde1dc_4baf_9ad9_9fa9_576c4ae34102["sendPreface()"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|calls| fedde1dc_4baf_9ad9_9fa9_576c4ae34102
  aae0aa7f_2029_08c9_f24d_05375655c19d["channelReadComplete()"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|calls| aae0aa7f_2029_08c9_f24d_05375655c19d
  fcfd6790_7b31_2514_7e7e_6ee61c0daff9["flush()"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|calls| fcfd6790_7b31_2514_7e7e_6ee61c0daff9
  8dee1709_f11e_ea83_5fa1_f29f61281e95["channelActive()"]
  f123ca8d_4393_d5af_4aa4_bd6bee27eb0e -->|calls| 8dee1709_f11e_ea83_5fa1_f29f61281e95
  style f123ca8d_4393_d5af_4aa4_bd6bee27eb0e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 259–270

        @Override
        public void channelActive(ChannelHandlerContext ctx) throws Exception {
            // The channel just became active - send the connection preface to the remote endpoint.
            sendPreface(ctx);

            if (flushPreface) {
                // As we don't know if any channelReadComplete() events will be triggered at all we need to ensure we
                // also flush. Otherwise the remote peer might never see the preface / settings frame.
                // See https://github.com/netty/netty/issues/12089
                ctx.flush();
            }
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does channelActive() do?
channelActive() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is channelActive() defined?
channelActive() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 259.
What does channelActive() call?
channelActive() calls 4 function(s): channelActive, channelReadComplete, flush, sendPreface.
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