Home / Function/ setWritable() — netty Function Reference

setWritable() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 2

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 292–303

    private void setWritable(boolean invokeLater) {
        for (;;) {
            final int oldValue = unwritable;
            final int newValue = oldValue & ~1;
            if (UNWRITABLE_UPDATER.compareAndSet(this, oldValue, newValue)) {
                if (oldValue != 0 && newValue == 0) {
                    fireChannelWritabilityChanged(invokeLater);
                }
                break;
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free