Home / Function/ trySetWritable() — netty Function Reference

trySetWritable() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 282–290

    final void trySetWritable() {
        // The parent is writable again but the child channel itself may still not be writable.
        // Lets try to set the child channel writable to match the state of the parent channel
        // if (and only if) the totalPendingSize is smaller then the low water-mark.
        // If this is not the case we will try again later once we drop under it.
        if (totalPendingSize < config().getWriteBufferLowWaterMark()) {
            setWritable(false);
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free