Home / Function/ processPendingReadCompleteQueue() — netty Function Reference

processPendingReadCompleteQueue() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  ecce0b9e_22b1_8b99_9cfd_5774c033087a["processPendingReadCompleteQueue()"]
  42ad104c_27ce_3949_598d_983571f45120["Http2MultiplexHandler"]
  ecce0b9e_22b1_8b99_9cfd_5774c033087a -->|defined in| 42ad104c_27ce_3949_598d_983571f45120
  c6828173_1014_42d3_4333_88ff1adbdd55["channelReadComplete()"]
  c6828173_1014_42d3_4333_88ff1adbdd55 -->|calls| ecce0b9e_22b1_8b99_9cfd_5774c033087a
  148e0a25_2d76_92ef_12e4_96137f62e6e4["addChannelToReadCompletePendingQueue()"]
  148e0a25_2d76_92ef_12e4_96137f62e6e4 -->|calls| ecce0b9e_22b1_8b99_9cfd_5774c033087a
  c6828173_1014_42d3_4333_88ff1adbdd55["channelReadComplete()"]
  ecce0b9e_22b1_8b99_9cfd_5774c033087a -->|calls| c6828173_1014_42d3_4333_88ff1adbdd55
  style ecce0b9e_22b1_8b99_9cfd_5774c033087a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java lines 361–381

    private void processPendingReadCompleteQueue() {
        parentReadInProgress = true;
        // 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.
        AbstractHttp2StreamChannel childChannel = readCompletePendingQueue.poll();
        if (childChannel != null) {
            try {
                do {
                    childChannel.fireChildReadComplete();
                    childChannel = readCompletePendingQueue.poll();
                } while (childChannel != null);
            } finally {
                parentReadInProgress = false;
                readCompletePendingQueue.clear();
                ctx.flush();
            }
        } else {
            parentReadInProgress = false;
        }
    }

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/Http2MultiplexHandler.java.
Where is processPendingReadCompleteQueue() defined?
processPendingReadCompleteQueue() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexHandler.java at line 361.
What does processPendingReadCompleteQueue() call?
processPendingReadCompleteQueue() calls 1 function(s): channelReadComplete.
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