Home / Function/ maxUsableChannelBytes() — netty Function Reference

maxUsableChannelBytes() — netty Function Reference

Architecture documentation for the maxUsableChannelBytes() function in DefaultHttp2RemoteFlowController.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  ab77a5ad_de02_f74b_aa2f_07d659643816["maxUsableChannelBytes()"]
  415966d7_2c19_58a9_659f_282cc732e73c["DefaultHttp2RemoteFlowController"]
  ab77a5ad_de02_f74b_aa2f_07d659643816 -->|defined in| 415966d7_2c19_58a9_659f_282cc732e73c
  320e1960_32da_24ad_1d4d_a86c2f06104e["writableBytes()"]
  320e1960_32da_24ad_1d4d_a86c2f06104e -->|calls| ab77a5ad_de02_f74b_aa2f_07d659643816
  b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6["minUsableChannelBytes()"]
  ab77a5ad_de02_f74b_aa2f_07d659643816 -->|calls| b57d9aa1_fa78_3fe4_aa4b_e99055abe6d6
  7a19e5af_cd64_43b8_9e5a_5f9f20b28c91["windowSize()"]
  ab77a5ad_de02_f74b_aa2f_07d659643816 -->|calls| 7a19e5af_cd64_43b8_9e5a_5f9f20b28c91
  style ab77a5ad_de02_f74b_aa2f_07d659643816 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java lines 246–253

    private int maxUsableChannelBytes() {
        // If the channel isWritable, allow at least minUsableChannelBytes.
        int channelWritableBytes = (int) min(Integer.MAX_VALUE, ctx.channel().bytesBeforeUnwritable());
        int usableBytes = channelWritableBytes > 0 ? max(channelWritableBytes, minUsableChannelBytes()) : 0;

        // Clip the usable bytes by the connection window.
        return min(connectionState.windowSize(), usableBytes);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does maxUsableChannelBytes() do?
maxUsableChannelBytes() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java.
Where is maxUsableChannelBytes() defined?
maxUsableChannelBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java at line 246.
What does maxUsableChannelBytes() call?
maxUsableChannelBytes() calls 2 function(s): minUsableChannelBytes, windowSize.
What calls maxUsableChannelBytes()?
maxUsableChannelBytes() is called by 1 function(s): writableBytes.

Analyze Your Own Codebase

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

Try Supermodel Free