processSelectedKey() — netty Function Reference
Architecture documentation for the processSelectedKey() function in NioIoHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aca109d8_122e_b26d_bc0c_7282ec7c38da["processSelectedKey()"] db526e28_8aae_a182_b56b_dc12824d89f5["NioIoHandler"] aca109d8_122e_b26d_bc0c_7282ec7c38da -->|defined in| db526e28_8aae_a182_b56b_dc12824d89f5 1b0b7e3a_8aa0_e5ec_b668_d4f04f445265["processSelectedKeysPlain()"] 1b0b7e3a_8aa0_e5ec_b668_d4f04f445265 -->|calls| aca109d8_122e_b26d_bc0c_7282ec7c38da e3fcb994_a327_a559_b40a_d6d5470f3507["processSelectedKeysOptimized()"] e3fcb994_a327_a559_b40a_d6d5470f3507 -->|calls| aca109d8_122e_b26d_bc0c_7282ec7c38da ef8255b9_2b69_3cc8_b9f4_09f59f321f26["isValid()"] aca109d8_122e_b26d_bc0c_7282ec7c38da -->|calls| ef8255b9_2b69_3cc8_b9f4_09f59f321f26 b2d60452_c9f9_89ec_0be0_2d281d72f3a4["close()"] aca109d8_122e_b26d_bc0c_7282ec7c38da -->|calls| b2d60452_c9f9_89ec_0be0_2d281d72f3a4 5fe8a1db_0ebd_9490_dba5_1e6fdafec1c6["handle()"] aca109d8_122e_b26d_bc0c_7282ec7c38da -->|calls| 5fe8a1db_0ebd_9490_dba5_1e6fdafec1c6 style aca109d8_122e_b26d_bc0c_7282ec7c38da fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/nio/NioIoHandler.java lines 586–597
private void processSelectedKey(SelectionKey k) {
final DefaultNioRegistration registration = (DefaultNioRegistration) k.attachment();
if (!registration.isValid()) {
try {
registration.handle.close();
} catch (Exception e) {
logger.debug("Exception during closing " + registration.handle, e);
}
return;
}
registration.handle(k.readyOps());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does processSelectedKey() do?
processSelectedKey() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/nio/NioIoHandler.java.
Where is processSelectedKey() defined?
processSelectedKey() is defined in transport/src/main/java/io/netty/channel/nio/NioIoHandler.java at line 586.
What does processSelectedKey() call?
processSelectedKey() calls 3 function(s): close, handle, isValid.
What calls processSelectedKey()?
processSelectedKey() is called by 2 function(s): processSelectedKeysOptimized, processSelectedKeysPlain.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free