Class AbstractBootstrap<B extends AbstractBootstrap<B,​C,​F>,​C extends Channel,​F>

    • Method Detail

      • attr

        public <T> B attr​(io.netty5.util.AttributeKey<T> key,
                          T value)
        Allow to specify an initial attribute of the newly created Channel. If the value is null, the attribute of the specified key is removed.
      • validate

        public B validate()
        Validate all the parameters. Sub-classes may override this, but should call the super method in that case.
      • clone

        public abstract B clone()
        Returns a deep clone of this bootstrap which has the identical configuration. This method is useful when making multiple Channels with similar settings. Please note that this method does not clone the EventLoopGroup deeply but shallowly, making the group a shared resource.
        Overrides:
        clone in class Object
      • register

        public io.netty5.util.concurrent.Future<Channel> register()
        Create a new Channel and register it with an EventLoop.
      • createUnregistered

        public Channel createUnregistered()
                                   throws Exception
        Create a new unregistered channel.

        The channel must then be registered separately.

        Returns:
        A new unregistered channel.
        Throws:
        Exception - If the channel cannot be created.
      • bind

        public io.netty5.util.concurrent.Future<Channel> bind()
        Create a new Channel and bind it.
      • bind

        public io.netty5.util.concurrent.Future<Channel> bind​(int inetPort)
        Create a new Channel and bind it.
      • bind

        public io.netty5.util.concurrent.Future<Channel> bind​(String inetHost,
                                                              int inetPort)
        Create a new Channel and bind it.
      • bind

        public io.netty5.util.concurrent.Future<Channel> bind​(InetAddress inetHost,
                                                              int inetPort)
        Create a new Channel and bind it.