channelRegistered() — netty Function Reference
Architecture documentation for the channelRegistered() function in ChannelInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b1427cb1_eeae_cdf2_246b_5209d53f13ed["channelRegistered()"] e8b02344_55ca_b96d_1e76_3f1acf3d80c6["ChannelInitializer"] b1427cb1_eeae_cdf2_246b_5209d53f13ed -->|defined in| e8b02344_55ca_b96d_1e76_3f1acf3d80c6 8660b724_b032_c48f_e8c9_33c1b4542ffe["handlerAdded()"] b1427cb1_eeae_cdf2_246b_5209d53f13ed -->|calls| 8660b724_b032_c48f_e8c9_33c1b4542ffe 5a672898_8ee2_8a02_cb4a_41c51216bcba["initChannel()"] b1427cb1_eeae_cdf2_246b_5209d53f13ed -->|calls| 5a672898_8ee2_8a02_cb4a_41c51216bcba 981476f2_0013_63bb_3526_de2c469ebf83["removeState()"] b1427cb1_eeae_cdf2_246b_5209d53f13ed -->|calls| 981476f2_0013_63bb_3526_de2c469ebf83 style b1427cb1_eeae_cdf2_246b_5209d53f13ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/ChannelInitializer.java lines 72–88
@Override
@SuppressWarnings("unchecked")
public final void channelRegistered(ChannelHandlerContext ctx) throws Exception {
// Normally this method will never be called as handlerAdded(...) should call initChannel(...) and remove
// the handler.
if (initChannel(ctx)) {
// we called initChannel(...) so we need to call now pipeline.fireChannelRegistered() to ensure we not
// miss an event.
ctx.pipeline().fireChannelRegistered();
// We are done with init the Channel, removing all the state for the Channel now.
removeState(ctx);
} else {
// Called initChannel(...) before which is the expected behavior, so just forward the event.
ctx.fireChannelRegistered();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelRegistered() do?
channelRegistered() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/ChannelInitializer.java.
Where is channelRegistered() defined?
channelRegistered() is defined in transport/src/main/java/io/netty/channel/ChannelInitializer.java at line 72.
What does channelRegistered() call?
channelRegistered() calls 3 function(s): handlerAdded, initChannel, removeState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free