Class Http2StreamChannelBootstrap


  • public final class Http2StreamChannelBootstrap
    extends Object
    • Constructor Detail

      • Http2StreamChannelBootstrap

        public Http2StreamChannelBootstrap​(io.netty.channel.Channel channel)
    • Method Detail

      • option

        public <T> Http2StreamChannelBootstrap option​(io.netty.channel.ChannelOption<T> option,
                                                      T value)
        Allow to specify a ChannelOption which is used for the Http2StreamChannel instances once they got created. Use a value of null to remove a previous set ChannelOption.
      • attr

        public <T> Http2StreamChannelBootstrap attr​(io.netty.util.AttributeKey<T> key,
                                                    T value)
        Allow to specify an initial attribute of the newly created Http2StreamChannel. If the value is null, the attribute of the specified key is removed.
      • handler

        public Http2StreamChannelBootstrap handler​(io.netty.channel.ChannelHandler handler)
        the ChannelHandler to use for serving the requests.
      • open

        public io.netty.util.concurrent.Future<Http2StreamChannel> open()
        Open a new Http2StreamChannel to use.
        Returns:
        the Future that will be notified once the channel was opened successfully or it failed.
      • open

        public io.netty.util.concurrent.Future<Http2StreamChannel> open​(io.netty.util.concurrent.Promise<Http2StreamChannel> promise)
        Open a new Http2StreamChannel to use and notifies the given Promise.
        Returns:
        the Future that will be notified once the channel was opened successfully or it failed.