setWritable() — netty Function Reference
Architecture documentation for the setWritable() function in ChannelOutboundBuffer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 540d1764_595d_7536_0315_f2bb897f6316["setWritable()"] 509b1bc5_7cdc_9ee4_03d9_31eb2203d807["ChannelOutboundBuffer"] 540d1764_595d_7536_0315_f2bb897f6316 -->|defined in| 509b1bc5_7cdc_9ee4_03d9_31eb2203d807 9442861d_ae43_c572_95ea_8e92ddbb709f["decrementPendingOutboundBytes()"] 9442861d_ae43_c572_95ea_8e92ddbb709f -->|calls| 540d1764_595d_7536_0315_f2bb897f6316 9f76e4fc_265c_9f0c_23ed_b66d251214a9["fireChannelWritabilityChanged()"] 540d1764_595d_7536_0315_f2bb897f6316 -->|calls| 9f76e4fc_265c_9f0c_23ed_b66d251214a9 style 540d1764_595d_7536_0315_f2bb897f6316 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java lines 618–629
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
Called By
Source
Frequently Asked Questions
What does setWritable() do?
setWritable() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java.
Where is setWritable() defined?
setWritable() is defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java at line 618.
What does setWritable() call?
setWritable() calls 1 function(s): fireChannelWritabilityChanged.
What calls setWritable()?
setWritable() 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