Home / Function/ channelInactive() — netty Function Reference

channelInactive() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fd1300b0_2e73_299f_7583_1e44118f7a58["channelInactive()"]
  71405c1a_689d_5893_0dd0_554c0d86697f["Decoder"]
  fd1300b0_2e73_299f_7583_1e44118f7a58 -->|defined in| 71405c1a_689d_5893_0dd0_554c0d86697f
  style fd1300b0_2e73_299f_7583_1e44118f7a58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpClientCodec.java lines 407–420

        @Override
        public void channelInactive(ChannelHandlerContext ctx)
                throws Exception {
            super.channelInactive(ctx);

            if (failOnMissingResponse) {
                long missingResponses = requestResponseCounter.get();
                if (missingResponses > 0) {
                    ctx.fireExceptionCaught(new PrematureChannelClosureException(
                            "channel gone inactive with " + missingResponses +
                            " missing response(s)"));
                }
            }
        }

Subdomains

Frequently Asked Questions

What does channelInactive() do?
channelInactive() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpClientCodec.java.
Where is channelInactive() defined?
channelInactive() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpClientCodec.java at line 407.

Analyze Your Own Codebase

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

Try Supermodel Free