remove0() — netty Function Reference
Architecture documentation for the remove0() function in ChannelOutboundBuffer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cd969e8c_0b55_2177_ee6c_1c15a5b3292f["remove0()"] 509b1bc5_7cdc_9ee4_03d9_31eb2203d807["ChannelOutboundBuffer"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|defined in| 509b1bc5_7cdc_9ee4_03d9_31eb2203d807 6dea3e34_a4b3_484d_ed24_d39287511a5a["remove()"] 6dea3e34_a4b3_484d_ed24_d39287511a5a -->|calls| cd969e8c_0b55_2177_ee6c_1c15a5b3292f 03cc489f_2713_64b1_01f8_eca6d57d3c3d["failFlushed()"] 03cc489f_2713_64b1_01f8_eca6d57d3c3d -->|calls| cd969e8c_0b55_2177_ee6c_1c15a5b3292f 99a6a55c_40f3_d958_c218_8834dd310e16["clearNioBuffers()"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|calls| 99a6a55c_40f3_d958_c218_8834dd310e16 115bcbdc_e7fe_ba2c_e179_c7225d8ea4db["removeEntry()"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|calls| 115bcbdc_e7fe_ba2c_e179_c7225d8ea4db 388cda2b_b8f5_fdd6_cc01_b98d77fd3613["safeFail()"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|calls| 388cda2b_b8f5_fdd6_cc01_b98d77fd3613 9442861d_ae43_c572_95ea_8e92ddbb709f["decrementPendingOutboundBytes()"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|calls| 9442861d_ae43_c572_95ea_8e92ddbb709f e4eb9088_d0fb_5c3e_c912_85c62a5fd0dc["unguardedRecycle()"] cd969e8c_0b55_2177_ee6c_1c15a5b3292f -->|calls| e4eb9088_d0fb_5c3e_c912_85c62a5fd0dc style cd969e8c_0b55_2177_ee6c_1c15a5b3292f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java lines 321–346
private boolean remove0(Throwable cause, boolean notifyWritability) {
Entry e = flushedEntry;
if (e == null) {
clearNioBuffers();
return false;
}
Object msg = e.msg;
ChannelPromise promise = e.promise;
int size = e.pendingSize;
removeEntry(e);
if (!e.cancelled) {
// only release message, fail and decrement if it was not canceled before.
ReferenceCountUtil.safeRelease(msg);
safeFail(promise, cause);
decrementPendingOutboundBytes(size, false, notifyWritability);
}
// recycle the entry
e.unguardedRecycle();
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does remove0() do?
remove0() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java.
Where is remove0() defined?
remove0() is defined in transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java at line 321.
What does remove0() call?
remove0() calls 5 function(s): clearNioBuffers, decrementPendingOutboundBytes, removeEntry, safeFail, unguardedRecycle.
What calls remove0()?
remove0() is called by 2 function(s): failFlushed, remove.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free