Home / Function/ close() — netty Function Reference

close() — netty Function Reference

Architecture documentation for the close() function in StreamBufferingEncoder.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  816a34d0_fc4e_027e_c76d_4a3950770b27["close()"]
  29cd10ea_888d_e1b6_5974_a15b31b4b5f0["StreamBufferingEncoder"]
  816a34d0_fc4e_027e_c76d_4a3950770b27 -->|defined in| 29cd10ea_888d_e1b6_5974_a15b31b4b5f0
  26c22993_f244_60d5_ec2e_4c99e54c35cc["close()"]
  26c22993_f244_60d5_ec2e_4c99e54c35cc -->|calls| 816a34d0_fc4e_027e_c76d_4a3950770b27
  a895a0e3_4e36_d3ff_a06d_b6dd4c4f3bce["ChannelFuture()"]
  a895a0e3_4e36_d3ff_a06d_b6dd4c4f3bce -->|calls| 816a34d0_fc4e_027e_c76d_4a3950770b27
  f81a0cff_9108_6302_08c7_2675d219dd9a["tryCreatePendingStreams()"]
  f81a0cff_9108_6302_08c7_2675d219dd9a -->|calls| 816a34d0_fc4e_027e_c76d_4a3950770b27
  26c22993_f244_60d5_ec2e_4c99e54c35cc["close()"]
  816a34d0_fc4e_027e_c76d_4a3950770b27 -->|calls| 26c22993_f244_60d5_ec2e_4c99e54c35cc
  aa702b10_1e00_9088_e09d_8d584997a29c["Http2ChannelClosedException()"]
  816a34d0_fc4e_027e_c76d_4a3950770b27 -->|calls| aa702b10_1e00_9088_e09d_8d584997a29c
  style 816a34d0_fc4e_027e_c76d_4a3950770b27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/StreamBufferingEncoder.java lines 257–273

    @Override
    public void close() {
        try {
            if (!closed) {
                closed = true;

                // Fail all buffered streams.
                Http2ChannelClosedException e = new Http2ChannelClosedException();
                while (!pendingStreams.isEmpty()) {
                    PendingStream stream = pendingStreams.pollFirstEntry().getValue();
                    stream.close(e);
                }
            }
        } finally {
            super.close();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free