Home / Class/ BootstrapConfig Class — netty Architecture

BootstrapConfig Class — netty Architecture

Architecture documentation for the BootstrapConfig class in BootstrapConfig.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  729bf23e_5a98_89aa_5394_381cab72de91["BootstrapConfig"]
  2daf85fc_4b3d_d32f_e398_64a90548c825["BootstrapConfig.java"]
  729bf23e_5a98_89aa_5394_381cab72de91 -->|defined in| 2daf85fc_4b3d_d32f_e398_64a90548c825
  440b72bd_68ef_8da0_07fb_d3e480a0c182["BootstrapConfig()"]
  729bf23e_5a98_89aa_5394_381cab72de91 -->|method| 440b72bd_68ef_8da0_07fb_d3e480a0c182
  435c0490_8c83_9daf_6b05_4fa9be09e652["SocketAddress()"]
  729bf23e_5a98_89aa_5394_381cab72de91 -->|method| 435c0490_8c83_9daf_6b05_4fa9be09e652
  6d12432f_34c7_c7b1_9996_fe5e7a909398["resolver()"]
  729bf23e_5a98_89aa_5394_381cab72de91 -->|method| 6d12432f_34c7_c7b1_9996_fe5e7a909398
  d9b61766_e6ad_667d_d3fd_688fa3278206["String()"]
  729bf23e_5a98_89aa_5394_381cab72de91 -->|method| d9b61766_e6ad_667d_d3fd_688fa3278206

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/BootstrapConfig.java lines 26–63

public final class BootstrapConfig extends AbstractBootstrapConfig<Bootstrap, Channel> {

    BootstrapConfig(Bootstrap bootstrap) {
        super(bootstrap);
    }

    /**
     * Returns the configured remote address or {@code null} if non is configured yet.
     */
    public SocketAddress remoteAddress() {
        return bootstrap.remoteAddress();
    }

    /**
     * Returns the configured {@link AddressResolverGroup}, {@code null} if resolver was disabled
     * with {@link Bootstrap#disableResolver()}, or the default if not configured yet.
     */
    public AddressResolverGroup<?> resolver() {
        return bootstrap.resolver();
    }

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder(super.toString());
        buf.setLength(buf.length() - 1);
        AddressResolverGroup<?> resolver = resolver();
        if (resolver != null) {
            buf.append(", resolver: ")
                    .append(resolver);
        }
        SocketAddress remoteAddress = remoteAddress();
        if (remoteAddress != null) {
            buf.append(", remoteAddress: ")
                    .append(remoteAddress);
        }
        return buf.append(')').toString();
    }
}

Frequently Asked Questions

What is the BootstrapConfig class?
BootstrapConfig is a class in the netty codebase, defined in transport/src/main/java/io/netty/bootstrap/BootstrapConfig.java.
Where is BootstrapConfig defined?
BootstrapConfig is defined in transport/src/main/java/io/netty/bootstrap/BootstrapConfig.java at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free