Home / Function/ checkCloseConnection() — netty Function Reference

checkCloseConnection() — netty Function Reference

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

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  29eb3608_955d_2e37_d37c_1caeb939aef1["checkCloseConnection()"]
  a9ab361d_2417_0366_d9d0_ae1adb2145dc["Http2ConnectionHandler"]
  29eb3608_955d_2e37_d37c_1caeb939aef1 -->|defined in| a9ab361d_2417_0366_d9d0_ae1adb2145dc
  4992b0b8_e1a4_4681_744c_1e39df6dddf2["doCloseStream()"]
  4992b0b8_e1a4_4681_744c_1e39df6dddf2 -->|calls| 29eb3608_955d_2e37_d37c_1caeb939aef1
  799cf1ef_e488_9c39_1143_a17e89788c65["isGracefulShutdownComplete()"]
  29eb3608_955d_2e37_d37c_1caeb939aef1 -->|calls| 799cf1ef_e488_9c39_1143_a17e89788c65
  f04de241_cdc7_ec36_6253_6c13e215b0da["operationComplete()"]
  29eb3608_955d_2e37_d37c_1caeb939aef1 -->|calls| f04de241_cdc7_ec36_6253_6c13e215b0da
  style 29eb3608_955d_2e37_d37c_1caeb939aef1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 855–869

    private void checkCloseConnection(ChannelFuture future) {
        // If this connection is closing and the graceful shutdown has completed, close the connection
        // once this operation completes.
        if (closeListener != null && isGracefulShutdownComplete()) {
            ChannelFutureListener closeListener = this.closeListener;
            // This method could be called multiple times
            // and we don't want to notify the closeListener multiple times.
            this.closeListener = null;
            try {
                closeListener.operationComplete(future);
            } catch (Exception e) {
                throw new IllegalStateException("Close listener threw an unexpected exception", e);
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free