destroy() — netty Function Reference
Architecture documentation for the destroy() function in FlowControlHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b["destroy()"] a378d3b4_7977_a8fc_c1dd_b695ec779172["FlowControlHandler"] dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b -->|defined in| a378d3b4_7977_a8fc_c1dd_b695ec779172 cd6f0428_f8e3_c46a_35a0_7f323a7ab542["handlerRemoved()"] cd6f0428_f8e3_c46a_35a0_7f323a7ab542 -->|calls| dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b 42db94c1_af12_1f19_80ee_c95c854f9085["channelInactive()"] 42db94c1_af12_1f19_80ee_c95c854f9085 -->|calls| dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b 850596a6_2ddb_8197_48b4_73aca6bdc7f6["recycle()"] dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b -->|calls| 850596a6_2ddb_8197_48b4_73aca6bdc7f6 style dac1bd54_5aee_94e0_3f42_ccbaa3e43f7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/flow/FlowControlHandler.java lines 97–114
private void destroy() {
if (queue != null) {
if (!queue.isEmpty()) {
logger.trace("Non-empty queue: {}", queue);
if (releaseMessages) {
Object msg;
while ((msg = queue.poll()) != null) {
ReferenceCountUtil.safeRelease(msg);
}
}
}
queue.recycle();
queue = null;
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does destroy() do?
destroy() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/flow/FlowControlHandler.java.
Where is destroy() defined?
destroy() is defined in handler/src/main/java/io/netty/handler/flow/FlowControlHandler.java at line 97.
What does destroy() call?
destroy() calls 1 function(s): recycle.
What calls destroy()?
destroy() is called by 2 function(s): channelInactive, handlerRemoved.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free