init() — netty Function Reference
Architecture documentation for the init() function in Http2StreamChannelBootstrap.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8d65137a_a1a3_5280_72d5_6353ad731305["init()"] 5a534d0f_a13f_a12d_bbed_309a0c8a2c40["Http2StreamChannelBootstrap"] 8d65137a_a1a3_5280_72d5_6353ad731305 -->|defined in| 5a534d0f_a13f_a12d_bbed_309a0c8a2c40 172c38c6_af21_125c_acfb_43ad1a8f85fc["open0()"] 172c38c6_af21_125c_acfb_43ad1a8f85fc -->|calls| 8d65137a_a1a3_5280_72d5_6353ad731305 28eece98_007f_0096_486d_56423cd5640c["setChannelOptions()"] 8d65137a_a1a3_5280_72d5_6353ad731305 -->|calls| 28eece98_007f_0096_486d_56423cd5640c 43de7c05_2a84_498a_bd6c_b18dc8218d27["setAttributes()"] 8d65137a_a1a3_5280_72d5_6353ad731305 -->|calls| 43de7c05_2a84_498a_bd6c_b18dc8218d27 style 8d65137a_a1a3_5280_72d5_6353ad731305 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java lines 205–218
private void init(Channel channel) {
ChannelPipeline p = channel.pipeline();
ChannelHandler handler = this.handler;
if (handler != null) {
p.addLast(handler);
}
final Map.Entry<ChannelOption<?>, Object> [] optionArray;
synchronized (options) {
optionArray = options.entrySet().toArray(EMPTY_OPTION_ARRAY);
}
setChannelOptions(channel, optionArray);
setAttributes(channel, attrs.entrySet().toArray(EMPTY_ATTRIBUTE_ARRAY));
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does init() do?
init() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java.
Where is init() defined?
init() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2StreamChannelBootstrap.java at line 205.
What does init() call?
init() calls 2 function(s): setAttributes, setChannelOptions.
What calls init()?
init() is called by 1 function(s): open0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free