Home / Function/ processPendingReadCompleteQueue() — netty Function Reference

processPendingReadCompleteQueue() — netty Function Reference

Architecture documentation for the processPendingReadCompleteQueue() function in Http2MultiplexCodec.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  a4b14126_9c21_7172_e4e0_4c793e70994c["processPendingReadCompleteQueue()"]
  a7ac469b_ce05_746a_3b73_34450541872b["Http2MultiplexCodec"]
  a4b14126_9c21_7172_e4e0_4c793e70994c -->|defined in| a7ac469b_ce05_746a_3b73_34450541872b
  78cb2a42_5bff_2a57_7359_230af6443313["channelReadComplete()"]
  78cb2a42_5bff_2a57_7359_230af6443313 -->|calls| a4b14126_9c21_7172_e4e0_4c793e70994c
  ae92dbd7_b469_ae27_b690_b6d66f2f52e4["addChannelToReadCompletePendingQueue()"]
  ae92dbd7_b469_ae27_b690_b6d66f2f52e4 -->|calls| a4b14126_9c21_7172_e4e0_4c793e70994c
  78cb2a42_5bff_2a57_7359_230af6443313["channelReadComplete()"]
  a4b14126_9c21_7172_e4e0_4c793e70994c -->|calls| 78cb2a42_5bff_2a57_7359_230af6443313
  096f508f_7cbd_e55c_5fa4_87541a097863["flush0()"]
  a4b14126_9c21_7172_e4e0_4c793e70994c -->|calls| 096f508f_7cbd_e55c_5fa4_87541a097863
  style a4b14126_9c21_7172_e4e0_4c793e70994c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java lines 254–273

    private void processPendingReadCompleteQueue() {
        parentReadInProgress = true;
        try {
            // If we have many child channel we can optimize for the case when multiple call flush() in
            // channelReadComplete(...) callbacks and only do it once as otherwise we will end-up with multiple
            // write calls on the socket which is expensive.
            for (;;) {
                AbstractHttp2StreamChannel childChannel = readCompletePendingQueue.poll();
                if (childChannel == null) {
                    break;
                }
                childChannel.fireChildReadComplete();
            }
        } finally {
            parentReadInProgress = false;
            readCompletePendingQueue.clear();
            // We always flush as this is what Http2ConnectionHandler does for now.
            flush0(ctx);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does processPendingReadCompleteQueue() do?
processPendingReadCompleteQueue() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java.
Where is processPendingReadCompleteQueue() defined?
processPendingReadCompleteQueue() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java at line 254.
What does processPendingReadCompleteQueue() call?
processPendingReadCompleteQueue() calls 2 function(s): channelReadComplete, flush0.
What calls processPendingReadCompleteQueue()?
processPendingReadCompleteQueue() is called by 2 function(s): addChannelToReadCompletePendingQueue, channelReadComplete.

Analyze Your Own Codebase

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

Try Supermodel Free