Package io.netty.handler.codec.http2
Class EspressoHttp2StreamChannelBootstrap
java.lang.Object
io.netty.handler.codec.http2.EspressoHttp2StreamChannelBootstrap
Forked from Netty 4
Http2StreamChannelBootstrap to allow using EspressoHttp2MultiplexHandler in the pipeline.-
Constructor Summary
ConstructorsConstructorDescriptionEspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel) EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel, boolean offload) -
Method Summary
Modifier and TypeMethodDescriptionattr(io.netty.util.AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdHttp2StreamChannel.handler(io.netty.channel.ChannelHandler handler) theChannelHandlerto use for serving the requests.io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel>open()Open a newHttp2StreamChannelto 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 newHttp2StreamChannelto use and notifies the givenPromise.voidopen0(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.option(io.netty.channel.ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created.
-
Constructor Details
-
EspressoHttp2StreamChannelBootstrap
public EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel) -
EspressoHttp2StreamChannelBootstrap
public EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel, boolean offload)
-
-
Method Details
-
option
public <T> EspressoHttp2StreamChannelBootstrap option(io.netty.channel.ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created. Use a value ofnullto remove a previous setChannelOption. -
attr
Allow to specify an initial attribute of the newly createdHttp2StreamChannel. If thevalueisnull, the attribute of the specifiedkeyis removed. -
handler
theChannelHandlerto use for serving the requests. -
open
public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open()Open a newHttp2StreamChannelto use.- Returns:
- the
Futurethat 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 newHttp2StreamChannelto use and notifies the givenPromise.- Returns:
- the
Futurethat 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. Useopen()or
-