prepareToDestroy() — netty Function Reference
Architecture documentation for the prepareToDestroy() function in EpollIoHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2945722a_0956_8b5c_9537_41d244da461b["prepareToDestroy()"] e531fecb_b495_8b97_8d1b_49ff2b5ccdbb["EpollIoHandler"] 2945722a_0956_8b5c_9537_41d244da461b -->|defined in| e531fecb_b495_8b97_8d1b_49ff2b5ccdbb f412d798_aeaf_139a_c2f5_ba554cb7493a["close()"] 2945722a_0956_8b5c_9537_41d244da461b -->|calls| f412d798_aeaf_139a_c2f5_ba554cb7493a style 2945722a_0956_8b5c_9537_41d244da461b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollIoHandler.java lines 210–219
@Override
public void prepareToDestroy() {
// Using the intermediate collection to prevent ConcurrentModificationException.
// In the `close()` method, the channel is deleted from `channels` map.
DefaultEpollIoRegistration[] copy = registrations.values().toArray(new DefaultEpollIoRegistration[0]);
for (DefaultEpollIoRegistration reg: copy) {
reg.close();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does prepareToDestroy() do?
prepareToDestroy() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollIoHandler.java.
Where is prepareToDestroy() defined?
prepareToDestroy() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollIoHandler.java at line 210.
What does prepareToDestroy() call?
prepareToDestroy() calls 1 function(s): close.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free