Home / Class/ FlowControlledBase Class — netty Architecture

FlowControlledBase Class — netty Architecture

Architecture documentation for the FlowControlledBase class in DefaultHttp2ConnectionEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b063852b_1752_8222_3428_5550efc28610["FlowControlledBase"]
  6ee2373c_9254_f504_1a3e_e58265550287["DefaultHttp2ConnectionEncoder.java"]
  b063852b_1752_8222_3428_5550efc28610 -->|defined in| 6ee2373c_9254_f504_1a3e_e58265550287
  7d8bf3c6_8fd8_7a4c_7153_87a320b9c732["FlowControlledBase()"]
  b063852b_1752_8222_3428_5550efc28610 -->|method| 7d8bf3c6_8fd8_7a4c_7153_87a320b9c732
  93222b2b_1be2_18c7_ec48_ecf6552f20f6["writeComplete()"]
  b063852b_1752_8222_3428_5550efc28610 -->|method| 93222b2b_1be2_18c7_ec48_ecf6552f20f6
  9fe992cb_c48d_71ef_fb5a_5f309c368f12["operationComplete()"]
  b063852b_1752_8222_3428_5550efc28610 -->|method| 9fe992cb_c48d_71ef_fb5a_5f309c368f12

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoder.java lines 599–628

    public abstract class FlowControlledBase implements Http2RemoteFlowController.FlowControlled,
            ChannelFutureListener {
        protected final Http2Stream stream;
        protected ChannelPromise promise;
        protected boolean endOfStream;
        protected int padding;

        FlowControlledBase(final Http2Stream stream, int padding, boolean endOfStream,
                final ChannelPromise promise) {
            checkPositiveOrZero(padding, "padding");
            this.padding = padding;
            this.endOfStream = endOfStream;
            this.stream = stream;
            this.promise = promise;
        }

        @Override
        public void writeComplete() {
            if (endOfStream) {
                lifecycleManager.closeStreamLocal(stream, promise);
            }
        }

        @Override
        public void operationComplete(ChannelFuture future) throws Exception {
            if (!future.isSuccess()) {
                error(flowController().channelHandlerContext(), future.cause());
            }
        }
    }

Frequently Asked Questions

What is the FlowControlledBase class?
FlowControlledBase is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoder.java.
Where is FlowControlledBase defined?
FlowControlledBase is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionEncoder.java at line 599.

Analyze Your Own Codebase

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

Try Supermodel Free