Home / Function/ emptyDataFrameShouldApplyFlowControl() — netty Function Reference

emptyDataFrameShouldApplyFlowControl() — netty Function Reference

Architecture documentation for the emptyDataFrameShouldApplyFlowControl() function in DefaultHttp2ConnectionDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  88d61a08_3445_b918_798d_a60a2f118a52["emptyDataFrameShouldApplyFlowControl()"]
  7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc["DefaultHttp2ConnectionDecoderTest"]
  88d61a08_3445_b918_798d_a60a2f118a52 -->|defined in| 7c0b580c_3a1b_cdb3_bf02_2ffea3bbdffc
  acdaafb9_3038_adff_8f39_69a82babf017["mockFlowControl()"]
  88d61a08_3445_b918_798d_a60a2f118a52 -->|calls| acdaafb9_3038_adff_8f39_69a82babf017
  style 88d61a08_3445_b918_798d_a60a2f118a52 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java lines 371–388

    @Test
    public void emptyDataFrameShouldApplyFlowControl() throws Exception {
        final ByteBuf data = EMPTY_BUFFER;
        int padding = 0;
        mockFlowControl(0);
        try {
            decode().onDataRead(ctx, STREAM_ID, data, padding, true);
            verify(localFlow).receiveFlowControlledFrame(eq(stream), eq(data), eq(padding), eq(true));

            // Now we ignore the empty bytes inside consumeBytes method, so it will be called once.
            verify(localFlow).consumeBytes(eq(stream), eq(0));

            // Verify that the empty data event was propagated to the observer.
            verify(listener).onDataRead(eq(ctx), eq(STREAM_ID), eq(data), eq(padding), eq(true));
        } finally {
            data.release();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does emptyDataFrameShouldApplyFlowControl() do?
emptyDataFrameShouldApplyFlowControl() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java.
Where is emptyDataFrameShouldApplyFlowControl() defined?
emptyDataFrameShouldApplyFlowControl() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2ConnectionDecoderTest.java at line 371.
What does emptyDataFrameShouldApplyFlowControl() call?
emptyDataFrameShouldApplyFlowControl() calls 1 function(s): mockFlowControl.

Analyze Your Own Codebase

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

Try Supermodel Free