Home / Class/ Frame Class — netty Architecture

Frame Class — netty Architecture

Architecture documentation for the Frame class in StreamBufferingEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a8ef43d7_5290_e7f0_f156_a3755741c436["Frame"]
  ac8d53b1_507e_5b73_32c3_3f65876877d4["StreamBufferingEncoder.java"]
  a8ef43d7_5290_e7f0_f156_a3755741c436 -->|defined in| ac8d53b1_507e_5b73_32c3_3f65876877d4
  fc6b048a_7489_2b25_1679_dd4f0e40a6e1["Frame()"]
  a8ef43d7_5290_e7f0_f156_a3755741c436 -->|method| fc6b048a_7489_2b25_1679_dd4f0e40a6e1
  8c9986c5_81df_0710_7748_56a877998927["release()"]
  a8ef43d7_5290_e7f0_f156_a3755741c436 -->|method| 8c9986c5_81df_0710_7748_56a877998927
  30b8186a_b90d_8c9d_501c_eaea54c940a9["send()"]
  a8ef43d7_5290_e7f0_f156_a3755741c436 -->|method| 30b8186a_b90d_8c9d_501c_eaea54c940a9

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/StreamBufferingEncoder.java lines 333–352

    private abstract static class Frame {
        final ChannelPromise promise;

        Frame(ChannelPromise promise) {
            this.promise = promise;
        }

        /**
         * Release any resources (features, buffers, ...) associated with the frame.
         */
        void release(Throwable t) {
            if (t == null) {
                promise.setSuccess();
            } else {
                promise.setFailure(t);
            }
        }

        abstract void send(ChannelHandlerContext ctx, int streamId);
    }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free