Home / Function/ channelInactive() — netty Function Reference

channelInactive() — netty Function Reference

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

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  13472518_8540_e0ef_4907_dd1c5bb8675f["channelInactive()"]
  05afe0cf_4e0b_dc2b_8cc7_bc0bf148d5ed["BaseDecoder"]
  13472518_8540_e0ef_4907_dd1c5bb8675f -->|defined in| 05afe0cf_4e0b_dc2b_8cc7_bc0bf148d5ed
  ff42c156_99e8_6424_922e_4748014af503["channelInactive()"]
  ff42c156_99e8_6424_922e_4748014af503 -->|calls| 13472518_8540_e0ef_4907_dd1c5bb8675f
  68787620_1297_7012_76dd_f35cf0f76325["channelInactive()"]
  68787620_1297_7012_76dd_f35cf0f76325 -->|calls| 13472518_8540_e0ef_4907_dd1c5bb8675f
  859f94fe_ed5e_1249_ef66_7ee4bcad0137["close()"]
  13472518_8540_e0ef_4907_dd1c5bb8675f -->|calls| 859f94fe_ed5e_1249_ef66_7ee4bcad0137
  68787620_1297_7012_76dd_f35cf0f76325["channelInactive()"]
  13472518_8540_e0ef_4907_dd1c5bb8675f -->|calls| 68787620_1297_7012_76dd_f35cf0f76325
  style 13472518_8540_e0ef_4907_dd1c5bb8675f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 208–216

        public void channelInactive(ChannelHandlerContext ctx) throws Exception {
            // Connection has terminated, close the encoder and decoder.
            encoder().close();
            decoder().close();

            // We need to remove all streams (not just the active ones).
            // See https://github.com/netty/netty/issues/4838.
            connection().close(ctx.voidPromise());
        }

Domain

Subdomains

Frequently Asked Questions

What does channelInactive() do?
channelInactive() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is channelInactive() defined?
channelInactive() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 208.
What does channelInactive() call?
channelInactive() calls 2 function(s): channelInactive, close.
What calls channelInactive()?
channelInactive() is called by 2 function(s): channelInactive, channelInactive.

Analyze Your Own Codebase

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

Try Supermodel Free