Home / Type/ Http2ConnectionEncoder Type — netty Architecture

Http2ConnectionEncoder Type — netty Architecture

Architecture documentation for the Http2ConnectionEncoder type/interface in Http2ConnectionEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  23f6e598_f2b7_eb1b_326d_8af17e150e6b["Http2ConnectionEncoder"]
  7ec9f19c_7a18_a6d3_b4a0_aba9f902eada["Http2ConnectionEncoder.java"]
  23f6e598_f2b7_eb1b_326d_8af17e150e6b -->|defined in| 7ec9f19c_7a18_a6d3_b4a0_aba9f902eada
  style 23f6e598_f2b7_eb1b_326d_8af17e150e6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionEncoder.java lines 26–66

public interface Http2ConnectionEncoder extends Http2FrameWriter {

    /**
     * Sets the lifecycle manager. Must be called as part of initialization before the encoder is used.
     */
    void lifecycleManager(Http2LifecycleManager lifecycleManager);

    /**
     * Provides direct access to the underlying connection.
     */
    Http2Connection connection();

    /**
     * Provides the remote flow controller for managing outbound traffic.
     */
    Http2RemoteFlowController flowController();

    /**
     * Provides direct access to the underlying frame writer object.
     */
    Http2FrameWriter frameWriter();

    /**
     * Gets the local settings on the top of the queue that has been sent but not ACKed. This may
     * return {@code null}.
     */
    Http2Settings pollSentSettings();

    /**
     * Sets the settings for the remote endpoint of the HTTP/2 connection.
     */
    void remoteSettings(Http2Settings settings) throws Http2Exception;

    /**
     * Writes the given data to the internal {@link Http2FrameWriter} without performing any
     * state checks on the connection/stream.
     */
    @Override
    ChannelFuture writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId,
            Http2Flags flags, ByteBuf payload, ChannelPromise promise);
}

Frequently Asked Questions

What is the Http2ConnectionEncoder type?
Http2ConnectionEncoder is a type/interface in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionEncoder.java.
Where is Http2ConnectionEncoder defined?
Http2ConnectionEncoder is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionEncoder.java at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free