Home / Function/ handlerAdded() — netty Function Reference

handlerAdded() — netty Function Reference

Architecture documentation for the handlerAdded() function in ProxyHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  da781d19_5c1d_4dd3_b6b2_67a2104c7c27["handlerAdded()"]
  3f5c9c39_cf82_6deb_e43b_1a9ad5499a99["ProxyHandler"]
  da781d19_5c1d_4dd3_b6b2_67a2104c7c27 -->|defined in| 3f5c9c39_cf82_6deb_e43b_1a9ad5499a99
  96c215c5_320d_e6f2_5984_ce66a5cc0bed["channelActive()"]
  da781d19_5c1d_4dd3_b6b2_67a2104c7c27 -->|calls| 96c215c5_320d_e6f2_5984_ce66a5cc0bed
  282f0e5f_9a4a_855d_1f3b_0f799e58eeed["addCodec()"]
  da781d19_5c1d_4dd3_b6b2_67a2104c7c27 -->|calls| 282f0e5f_9a4a_855d_1f3b_0f799e58eeed
  3700afc1_1278_9142_32f8_fc09a8d61980["sendInitialMessage()"]
  da781d19_5c1d_4dd3_b6b2_67a2104c7c27 -->|calls| 3700afc1_1278_9142_32f8_fc09a8d61980
  style da781d19_5c1d_4dd3_b6b2_67a2104c7c27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java lines 136–149

    @Override
    public final void handlerAdded(ChannelHandlerContext ctx) throws Exception {
        this.ctx = ctx;
        addCodec(ctx);

        if (ctx.channel().isActive()) {
            // channelActive() event has been fired already, which means this.channelActive() will
            // not be invoked. We have to initialize here instead.
            sendInitialMessage(ctx);
        } else {
            // channelActive() event has not been fired yet.  this.channelOpen() will be invoked
            // and initialization will occur there.
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does handlerAdded() do?
handlerAdded() is a function in the netty codebase, defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java.
Where is handlerAdded() defined?
handlerAdded() is defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java at line 136.
What does handlerAdded() call?
handlerAdded() calls 3 function(s): addCodec, channelActive, sendInitialMessage.

Analyze Your Own Codebase

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

Try Supermodel Free