Package io.netty.handler.codec.http2
Class EspressoHttp2StreamChannelBootstrap
- java.lang.Object
-
- io.netty.handler.codec.http2.EspressoHttp2StreamChannelBootstrap
-
@UnstableApi public final class EspressoHttp2StreamChannelBootstrap extends java.lang.Object
Forked from Netty 4Http2StreamChannelBootstrap
to allow usingEspressoHttp2MultiplexHandler
in the pipeline.
-
-
Constructor Summary
Constructors Constructor Description EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel)
EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel, boolean offload)
-
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 createdHttp2StreamChannel
.EspressoHttp2StreamChannelBootstrap
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.<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.
-
-
-
Method Detail
-
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
public <T> EspressoHttp2StreamChannelBootstrap attr(io.netty.util.AttributeKey<T> key, T value)
Allow to specify an initial attribute of the newly createdHttp2StreamChannel
. If thevalue
isnull
, the attribute of the specifiedkey
is removed.
-
handler
public EspressoHttp2StreamChannelBootstrap handler(io.netty.channel.ChannelHandler 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
-
-