writeComplete() — netty Function Reference
Architecture documentation for the writeComplete() function in AbstractHttp2StreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 32a7a18d_d75e_ca41_7a57_2a5032b066d3["writeComplete()"] 2656dcfe_5cdb_7c7d_bc25_312393fe2e05["Http2ChannelUnsafe"] 32a7a18d_d75e_ca41_7a57_2a5032b066d3 -->|defined in| 2656dcfe_5cdb_7c7d_bc25_312393fe2e05 5ca6305e_9bed_80cc_f434_630ca5d3db99["write()"] 5ca6305e_9bed_80cc_f434_630ca5d3db99 -->|calls| 32a7a18d_d75e_ca41_7a57_2a5032b066d3 6ba5f11e_f430_02ca_f64c_f9a7338904bf["writeHttp2StreamFrame()"] 6ba5f11e_f430_02ca_f64c_f9a7338904bf -->|calls| 32a7a18d_d75e_ca41_7a57_2a5032b066d3 8a1829a9_4ff0_0fdc_6f6f_98fc1f844f84["closeForcibly()"] 32a7a18d_d75e_ca41_7a57_2a5032b066d3 -->|calls| 8a1829a9_4ff0_0fdc_6f6f_98fc1f844f84 style 32a7a18d_d75e_ca41_7a57_2a5032b066d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 1126–1144
private void writeComplete(Future<?> future, ChannelPromise promise) {
Throwable cause = future.cause();
if (cause == null) {
promise.setSuccess();
} else {
Throwable error = wrapStreamClosedError(cause);
// To make it more consistent with AbstractChannel we handle all IOExceptions here.
if (error instanceof IOException) {
if (config.isAutoClose()) {
// Close channel if needed.
closeForcibly();
} else {
// TODO: Once Http2StreamChannel extends DuplexChannel we should call shutdownOutput(...)
outboundClosed = true;
}
}
promise.setFailure(error);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeComplete() do?
writeComplete() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is writeComplete() defined?
writeComplete() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 1126.
What does writeComplete() call?
writeComplete() calls 1 function(s): closeForcibly.
What calls writeComplete()?
writeComplete() is called by 2 function(s): write, writeHttp2StreamFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free