Class EspressoHttp2StreamChannelBootstrap


  • @UnstableApi
    public final class EspressoHttp2StreamChannelBootstrap
    extends java.lang.Object
    Forked from Netty 4 Http2StreamChannelBootstrap to allow using EspressoHttp2MultiplexHandler in the pipeline.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> EspressoHttp2StreamChannelBootstrap attr​(io.netty.util.AttributeKey<T> key, T value)
      Allow to specify an initial attribute of the newly created Http2StreamChannel.
      EspressoHttp2StreamChannelBootstrap handler​(io.netty.channel.ChannelHandler handler)
      the ChannelHandler to use for serving the requests.
      io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open()
      Open a new Http2StreamChannel to use.
      io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open​(io.netty.channel.EventLoop childChannelEventLoop)  
      io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open​(io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)
      Open a new Http2StreamChannel to use and notifies the given Promise.
      void open0​(io.netty.channel.ChannelHandlerContext ctx, io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)
      Deprecated.
      should not be used directly.
      <T> EspressoHttp2StreamChannelBootstrap 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EspressoHttp2StreamChannelBootstrap

        public EspressoHttp2StreamChannelBootstrap​(io.netty.channel.Channel channel)
      • EspressoHttp2StreamChannelBootstrap

        public EspressoHttp2StreamChannelBootstrap​(io.netty.channel.Channel channel,
                                                   boolean offload)
    • Method Detail

      • option

        public <T> EspressoHttp2StreamChannelBootstrap 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> EspressoHttp2StreamChannelBootstrap 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.
      • open

        public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.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<io.netty.handler.codec.http2.Http2StreamChannel> open​(io.netty.channel.EventLoop childChannelEventLoop)
      • open

        public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open​(io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise,
                                                                                                     io.netty.channel.EventLoop childChannelEventLoop)
        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.
      • open0

        @Deprecated
        public void open0​(io.netty.channel.ChannelHandlerContext ctx,
                          io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise,
                          io.netty.channel.EventLoop childChannelEventLoop)
        Deprecated.
        should not be used directly. Use open() or