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
ConstructorDescriptionEspressoHttp2StreamChannelBootstrap
(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) theChannelHandler
to use for serving the requests.io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel>
open()
Open a newHttp2StreamChannel
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 newHttp2StreamChannel
to use and notifies the givenPromise
.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.option
(io.netty.channel.ChannelOption<T> option, T value) Allow to specify aChannelOption
which is used for theHttp2StreamChannel
instances 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 aChannelOption
which is used for theHttp2StreamChannel
instances once they got created. Use a value ofnull
to remove a previous setChannelOption
. -
attr
Allow to specify an initial attribute of the newly createdHttp2StreamChannel
. If thevalue
isnull
, the attribute of the specifiedkey
is removed. -
handler
theChannelHandler
to use for serving the requests. -
open
public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open()Open a newHttp2StreamChannel
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 newHttp2StreamChannel
to use and notifies the givenPromise
.- 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. Useopen()
or
-