setUnwritable() — netty Function Reference
Architecture documentation for the setUnwritable() function in ChannelOutboundBuffer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f76ba1c4_631e_5741_df8d_40ab464c2c2d["setUnwritable()"] 509b1bc5_7cdc_9ee4_03d9_31eb2203d807["ChannelOutboundBuffer"] f76ba1c4_631e_5741_df8d_40ab464c2c2d -->|defined in| 509b1bc5_7cdc_9ee4_03d9_31eb2203d807 edd2d6a1_6e66_f250_6201_d45b2f33f2fa["incrementPendingOutboundBytes()"] edd2d6a1_6e66_f250_6201_d45b2f33f2fa -->|calls| f76ba1c4_631e_5741_df8d_40ab464c2c2d 9f76e4fc_265c_9f0c_23ed_b66d251214a9["fireChannelWritabilityChanged()"] f76ba1c4_631e_5741_df8d_40ab464c2c2d -->|calls| 9f76e4fc_265c_9f0c_23ed_b66d251214a9 style f76ba1c4_631e_5741_df8d_40ab464c2c2d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java lines 631–642
private void setUnwritable(boolean invokeLater) {
for (;;) {
final int oldValue = unwritable;
final int newValue = oldValue | 1;
if (UNWRITABLE_UPDATER.compareAndSet(this, oldValue, newValue)) {
if (oldValue == 0) {
fireChannelWritabilityChanged(invokeLater);
}
break;
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setUnwritable() do?
setUnwritable() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java.
Where is setUnwritable() defined?
setUnwritable() is defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java at line 631.
What does setUnwritable() call?
setUnwritable() calls 1 function(s): fireChannelWritabilityChanged.
What calls setUnwritable()?
setUnwritable() is called by 1 function(s): incrementPendingOutboundBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free