doClose() — netty Function Reference
Architecture documentation for the doClose() function in Http2ConnectionHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857["doClose()"] 17901c52_dc16_288a_d386_470ce06cce7e["ClosingChannelFutureListener"] 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 -->|defined in| 17901c52_dc16_288a_d386_470ce06cce7e 6bbe1727_90d9_6694_d0c6_84855f70b394["ClosingChannelFutureListener()"] 6bbe1727_90d9_6694_d0c6_84855f70b394 -->|calls| 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 f04de241_cdc7_ec36_6253_6c13e215b0da["operationComplete()"] f04de241_cdc7_ec36_6253_6c13e215b0da -->|calls| 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 859f94fe_ed5e_1249_ef66_7ee4bcad0137["close()"] 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 -->|calls| 859f94fe_ed5e_1249_ef66_7ee4bcad0137 f04de241_cdc7_ec36_6253_6c13e215b0da["operationComplete()"] 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 -->|calls| f04de241_cdc7_ec36_6253_6c13e215b0da style 60a1ffc0_2a6c_10ae_8455_5c9e7c6be857 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 978–992
private void doClose() {
// We need to guard against multiple calls as the timeout may trigger close() first and then it will be
// triggered again because of operationComplete(...) is called.
if (closed) {
// This only happens if we also scheduled a timeout task.
assert timeoutTask != null;
return;
}
closed = true;
if (promise == null) {
ctx.close();
} else {
ctx.close(promise);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does doClose() do?
doClose() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is doClose() defined?
doClose() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 978.
What does doClose() call?
doClose() calls 2 function(s): close, operationComplete.
What calls doClose()?
doClose() is called by 2 function(s): ClosingChannelFutureListener, operationComplete.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free