Home / Class/ AbstractBootstrapConfig Class — netty Architecture

AbstractBootstrapConfig Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  e7451e47_9e79_e42d_021a_5d555751eb16["AbstractBootstrapConfig"]
  17969181_abcb_891d_12a9_008794b850bc["AbstractBootstrapConfig.java"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|defined in| 17969181_abcb_891d_12a9_008794b850bc
  3010e504_5a17_0056_b4e4_a5b76c34f26e["AbstractBootstrapConfig()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| 3010e504_5a17_0056_b4e4_a5b76c34f26e
  b056fd27_cca7_9361_86f9_dc2c55dae747["SocketAddress()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| b056fd27_cca7_9361_86f9_dc2c55dae747
  8aa598f6_6318_4ea3_0e64_cbd96b6650bf["channelFactory()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| 8aa598f6_6318_4ea3_0e64_cbd96b6650bf
  3f7d4b42_8ceb_ebc4_d4bf_816158e55b37["ChannelHandler()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| 3f7d4b42_8ceb_ebc4_d4bf_816158e55b37
  d22c37ee_2e70_74ee_f070_58eff9c57918["options()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| d22c37ee_2e70_74ee_f070_58eff9c57918
  4a9d98ba_a334_7bc9_d833_8897b3e5c049["attrs()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| 4a9d98ba_a334_7bc9_d833_8897b3e5c049
  9c04d14c_b643_ad97_dc1d_c53c98d7264b["EventLoopGroup()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| 9c04d14c_b643_ad97_dc1d_c53c98d7264b
  b87af09a_6e2b_a1e2_7a9d_9be68b1601d1["String()"]
  e7451e47_9e79_e42d_021a_5d555751eb16 -->|method| b87af09a_6e2b_a1e2_7a9d_9be68b1601d1

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/AbstractBootstrapConfig.java lines 32–135

public abstract class AbstractBootstrapConfig<B extends AbstractBootstrap<B, C>, C extends Channel> {

    protected final B bootstrap;

    protected AbstractBootstrapConfig(B bootstrap) {
        this.bootstrap = ObjectUtil.checkNotNull(bootstrap, "bootstrap");
    }

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

    /**
     * Returns the configured {@link ChannelFactory} or {@code null} if non is configured yet.
     */
    @SuppressWarnings("deprecation")
    public final ChannelFactory<? extends C> channelFactory() {
        return bootstrap.channelFactory();
    }

    /**
     * Returns the configured {@link ChannelHandler} or {@code null} if non is configured yet.
     */
    public final ChannelHandler handler() {
        return bootstrap.handler();
    }

    /**
     * Returns a copy of the configured options.
     */
    public final Map<ChannelOption<?>, Object> options() {
        return bootstrap.options();
    }

    /**
     * Returns a copy of the configured attributes.
     */
    public final Map<AttributeKey<?>, Object> attrs() {
        return bootstrap.attrs();
    }

    /**
     * Returns the configured {@link EventLoopGroup} or {@code null} if non is configured yet.
     */
    @SuppressWarnings("deprecation")
    public final EventLoopGroup group() {
        return bootstrap.group();
    }

    @Override
    public String toString() {
        StringBuilder buf = new StringBuilder()
                .append(StringUtil.simpleClassName(this))
                .append('(');
        EventLoopGroup group = group();
        if (group != null) {
            buf.append("group: ")
                    .append(StringUtil.simpleClassName(group))
                    .append(", ");
        }
        @SuppressWarnings("deprecation")
        ChannelFactory<? extends C> factory = channelFactory();
        if (factory != null) {
            buf.append("channelFactory: ")
                    .append(factory)
                    .append(", ");
        }
        SocketAddress localAddress = localAddress();
        if (localAddress != null) {
            buf.append("localAddress: ")
                    .append(localAddress)
                    .append(", ");
        }

        Map<ChannelOption<?>, Object> options = options();
        if (!options.isEmpty()) {
            buf.append("options: ")
                    .append(options)

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free