Home / Function/ channelRead0() — netty Function Reference

channelRead0() — netty Function Reference

Architecture documentation for the channelRead0() function in Http2ClientStreamFrameResponseHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ef5a4952_7fe0_ad2b_2d0f_dafc48ec1f49["channelRead0()"]
  e780a298_dbb8_27d4_fbac_7bf8e51a4fa6["Http2ClientStreamFrameResponseHandler"]
  ef5a4952_7fe0_ad2b_2d0f_dafc48ec1f49 -->|defined in| e780a298_dbb8_27d4_fbac_7bf8e51a4fa6
  style ef5a4952_7fe0_ad2b_2d0f_dafc48ec1f49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/helloworld/frame/client/Http2ClientStreamFrameResponseHandler.java lines 35–45

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, Http2StreamFrame msg) throws Exception {
        System.out.println("Received HTTP/2 'stream' frame: " + msg);

        // isEndStream() is not from a common interface, so we currently must check both
        if (msg instanceof Http2DataFrame && ((Http2DataFrame) msg).isEndStream()) {
            latch.countDown();
        } else if (msg instanceof Http2HeadersFrame && ((Http2HeadersFrame) msg).isEndStream()) {
            latch.countDown();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does channelRead0() do?
channelRead0() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/frame/client/Http2ClientStreamFrameResponseHandler.java.
Where is channelRead0() defined?
channelRead0() is defined in example/src/main/java/io/netty/example/http2/helloworld/frame/client/Http2ClientStreamFrameResponseHandler.java at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free