Class QuicStreamChannelBootstrap

    • Method Detail

      • option

        public <T> QuicStreamChannelBootstrap option​(io.netty.channel.ChannelOption<T> option,
                                                     @Nullable
                                                     T value)
        Allow to specify a ChannelOption which is used for the QuicStreamChannel instances once they got created. Use a value of null to remove a previous set ChannelOption.
        Type Parameters:
        T - the type of the value.
        Parameters:
        option - the ChannelOption to apply to the QuicStreamChannel.
        value - the value of the option.
        Returns:
        this instance.
      • attr

        public <T> QuicStreamChannelBootstrap attr​(io.netty.util.AttributeKey<T> key,
                                                   @Nullable
                                                   T value)
        Allow to specify an initial attribute of the newly created QuicStreamChannel. If the value is null, the attribute of the specified key is removed.
        Type Parameters:
        T - the type of the value.
        Parameters:
        key - the AttributeKey to apply to the QuicChannel.
        value - the value of the attribute.
        Returns:
        this instance.
      • handler

        public QuicStreamChannelBootstrap handler​(io.netty.channel.ChannelHandler streamHandler)
        Set the ChannelHandler that is added to the ChannelPipeline of the QuicStreamChannel once created.
        Parameters:
        streamHandler - the ChannelHandler that is added to the QuicStreamChannels ChannelPipeline.
        Returns:
        this instance.
      • create

        public io.netty.util.concurrent.Future<QuicStreamChannel> create()
        Creates a new QuicStreamChannel and notifies the Future.
        Returns:
        the Future that is notified once the operation completes.
      • create

        public io.netty.util.concurrent.Future<QuicStreamChannel> create​(io.netty.util.concurrent.Promise<QuicStreamChannel> promise)
        Creates a new QuicStreamChannel and notifies the Future.
        Parameters:
        promise - the Promise that is notified once the operation completes.
        Returns:
        the Future that is notified once the operation completes.