Home / Function/ ChannelFuture() — netty Function Reference

ChannelFuture() — netty Function Reference

Architecture documentation for the ChannelFuture() function in AbstractHttp2StreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  55416b34_a51d_3ed7_5cdb_3c3f84eaebcb["ChannelFuture()"]
  2656dcfe_5cdb_7c7d_bc25_312393fe2e05["Http2ChannelUnsafe"]
  55416b34_a51d_3ed7_5cdb_3c3f84eaebcb -->|defined in| 2656dcfe_5cdb_7c7d_bc25_312393fe2e05
  fb715e07_c12a_8071_8ba2_a2563036031e["windowUpdateFrameWriteComplete()"]
  55416b34_a51d_3ed7_5cdb_3c3f84eaebcb -->|calls| fb715e07_c12a_8071_8ba2_a2563036031e
  style 55416b34_a51d_3ed7_5cdb_3c3f84eaebcb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 984–1000

        private ChannelFuture writeWindowUpdateFrame(Http2WindowUpdateFrame windowUpdateFrame) {
            ChannelFuture future = write0(parentContext(), windowUpdateFrame);
            // window update frames are commonly swallowed by the Http2FrameCodec and the promise is synchronously
            // completed but the flow controller _may_ have generated a wire level WINDOW_UPDATE. Therefore we need,
            // to assume there was a write done that needs to be flushed or we risk flow control starvation.
            writeDoneAndNoFlush = true;
            // Add a listener which will notify and teardown the stream
            // when a window update fails if needed or check the result of the future directly if it was completed
            // already.
            // See https://github.com/netty/netty/issues/9663
            if (future.isDone()) {
                windowUpdateFrameWriteComplete(future, AbstractHttp2StreamChannel.this);
            } else {
                future.addListener(windowUpdateFrameWriteListener);
            }
            return future;
        }

Domain

Subdomains

Frequently Asked Questions

What does ChannelFuture() do?
ChannelFuture() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is ChannelFuture() defined?
ChannelFuture() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 984.
What does ChannelFuture() call?
ChannelFuture() calls 1 function(s): windowUpdateFrameWriteComplete.

Analyze Your Own Codebase

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

Try Supermodel Free