ServerBootstrapConfig Class — netty Architecture
Architecture documentation for the ServerBootstrapConfig class in ServerBootstrapConfig.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c95a5457_fd1a_430f_94db_ede3ba6c0195["ServerBootstrapConfig"] 6458f19e_01fa_438a_7ed0_eb6a368eacc1["ServerBootstrapConfig.java"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|defined in| 6458f19e_01fa_438a_7ed0_eb6a368eacc1 08f6ecc3_1247_1d95_c246_9644649500b7["ServerBootstrapConfig()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| 08f6ecc3_1247_1d95_c246_9644649500b7 2eda660e_c9bb_4048_b40f_e88cfc056d1b["EventLoopGroup()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| 2eda660e_c9bb_4048_b40f_e88cfc056d1b eea99bd2_2497_1135_f0c7_ec4ca2605812["ChannelHandler()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| eea99bd2_2497_1135_f0c7_ec4ca2605812 91fe26f3_2036_0ad1_8348_9f6abafc88b9["childOptions()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| 91fe26f3_2036_0ad1_8348_9f6abafc88b9 0683ed25_305d_1e4d_3d3d_aaddc3fc5c2f["childAttrs()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| 0683ed25_305d_1e4d_3d3d_aaddc3fc5c2f 3ca157c2_dda0_9f15_4c4c_0a97d5631cb2["String()"] c95a5457_fd1a_430f_94db_ede3ba6c0195 -->|method| 3ca157c2_dda0_9f15_4c4c_0a97d5631cb2
Relationship Graph
Source Code
transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java lines 30–105
public final class ServerBootstrapConfig extends AbstractBootstrapConfig<ServerBootstrap, ServerChannel> {
ServerBootstrapConfig(ServerBootstrap bootstrap) {
super(bootstrap);
}
/**
* Returns the configured {@link EventLoopGroup} which will be used for the child channels or {@code null}
* if non is configured yet.
*/
@SuppressWarnings("deprecation")
public EventLoopGroup childGroup() {
return bootstrap.childGroup();
}
/**
* Returns the configured {@link ChannelHandler} be used for the child channels or {@code null}
* if non is configured yet.
*/
public ChannelHandler childHandler() {
return bootstrap.childHandler();
}
/**
* Returns a copy of the configured options which will be used for the child channels.
*/
public Map<ChannelOption<?>, Object> childOptions() {
return bootstrap.childOptions();
}
/**
* Returns a copy of the configured attributes which will be used for the child channels.
*/
public Map<AttributeKey<?>, Object> childAttrs() {
return bootstrap.childAttrs();
}
@Override
public String toString() {
StringBuilder buf = new StringBuilder(super.toString());
buf.setLength(buf.length() - 1);
buf.append(", ");
EventLoopGroup childGroup = childGroup();
if (childGroup != null) {
buf.append("childGroup: ");
buf.append(StringUtil.simpleClassName(childGroup));
buf.append(", ");
}
Map<ChannelOption<?>, Object> childOptions = childOptions();
if (!childOptions.isEmpty()) {
buf.append("childOptions: ");
buf.append(childOptions);
buf.append(", ");
}
Map<AttributeKey<?>, Object> childAttrs = childAttrs();
if (!childAttrs.isEmpty()) {
buf.append("childAttrs: ");
buf.append(childAttrs);
buf.append(", ");
}
ChannelHandler childHandler = childHandler();
if (childHandler != null) {
buf.append("childHandler: ");
buf.append(childHandler);
buf.append(", ");
}
if (buf.charAt(buf.length() - 1) == '(') {
buf.append(')');
} else {
buf.setCharAt(buf.length() - 2, ')');
buf.setLength(buf.length() - 1);
}
return buf.toString();
}
}
Source
Frequently Asked Questions
What is the ServerBootstrapConfig class?
ServerBootstrapConfig is a class in the netty codebase, defined in transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java.
Where is ServerBootstrapConfig defined?
ServerBootstrapConfig is defined in transport/src/main/java/io/netty/bootstrap/ServerBootstrapConfig.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free