Home / Function/ decrementPendingOutboundBytes() — netty Function Reference

decrementPendingOutboundBytes() — netty Function Reference

Architecture documentation for the decrementPendingOutboundBytes() function in AbstractHttp2StreamChannel.java from the netty codebase.

Function java Buffer Allocators calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  7134f1fa_478b_d2e6_89ea_148d0d477e26["decrementPendingOutboundBytes()"]
  bcb58015_0c85_17e2_f1b3_0c1ad3aaa388["AbstractHttp2StreamChannel"]
  7134f1fa_478b_d2e6_89ea_148d0d477e26 -->|defined in| bcb58015_0c85_17e2_f1b3_0c1ad3aaa388
  913eecb4_a5fd_00ee_6dbc_41735192e10a["AbstractHttp2StreamChannel()"]
  913eecb4_a5fd_00ee_6dbc_41735192e10a -->|calls| 7134f1fa_478b_d2e6_89ea_148d0d477e26
  6ba5f11e_f430_02ca_f64c_f9a7338904bf["writeHttp2StreamFrame()"]
  6ba5f11e_f430_02ca_f64c_f9a7338904bf -->|calls| 7134f1fa_478b_d2e6_89ea_148d0d477e26
  31e22389_48c3_fa0d_d6a8_eccb2b0b119b["trySetWritable()"]
  7134f1fa_478b_d2e6_89ea_148d0d477e26 -->|calls| 31e22389_48c3_fa0d_d6a8_eccb2b0b119b
  6bdfa940_bc40_cf8b_d070_a835a7f43634["isWritable()"]
  7134f1fa_478b_d2e6_89ea_148d0d477e26 -->|calls| 6bdfa940_bc40_cf8b_d070_a835a7f43634
  83a9ef69_d166_c780_667b_643909762238["setWritable()"]
  7134f1fa_478b_d2e6_89ea_148d0d477e26 -->|calls| 83a9ef69_d166_c780_667b_643909762238
  style 7134f1fa_478b_d2e6_89ea_148d0d477e26 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 266–280

    private void decrementPendingOutboundBytes(long size, boolean invokeLater) {
        if (size == 0) {
            return;
        }

        long newWriteBufferSize = TOTAL_PENDING_SIZE_UPDATER.addAndGet(this, -size);
        // Once the totalPendingSize dropped below the low water-mark we can mark the child channel
        // as writable again. Before doing so we also need to ensure the parent channel is writable to
        // prevent excessive buffering in the parent outbound buffer. If the parent is not writable
        // we will mark the child channel as writable once the parent becomes writable by calling
        // trySetWritable() later.
        if (newWriteBufferSize < config().getWriteBufferLowWaterMark() && parent().isWritable()) {
            setWritable(invokeLater);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does decrementPendingOutboundBytes() do?
decrementPendingOutboundBytes() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is decrementPendingOutboundBytes() defined?
decrementPendingOutboundBytes() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 266.
What does decrementPendingOutboundBytes() call?
decrementPendingOutboundBytes() calls 3 function(s): isWritable, setWritable, trySetWritable.
What calls decrementPendingOutboundBytes()?
decrementPendingOutboundBytes() is called by 2 function(s): AbstractHttp2StreamChannel, writeHttp2StreamFrame.

Analyze Your Own Codebase

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

Try Supermodel Free