- java.lang.Object
-
- io.netty5.handler.codec.http2.Http2StreamChannelBootstrap
-
@UnstableApi public final class Http2StreamChannelBootstrap extends Object
-
-
Constructor Summary
Constructors Constructor Description Http2StreamChannelBootstrap(Channel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> Http2StreamChannelBootstrap
attr(AttributeKey<T> key, T value)
Allow to specify an initial attribute of the newly createdHttp2StreamChannel
.Http2StreamChannelBootstrap
handler(ChannelHandler handler)
theChannelHandler
to use for serving the requests.Future<Http2StreamChannel>
open()
Open a newHttp2StreamChannel
to use.Future<Http2StreamChannel>
open(Promise<Http2StreamChannel> promise)
Open a newHttp2StreamChannel
to use and notifies the givenPromise
.void
open0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise)
Deprecated.should not be used directly.<T> Http2StreamChannelBootstrap
option(ChannelOption<T> option, T value)
Allow to specify aChannelOption
which is used for theHttp2StreamChannel
instances once they got created.
-
-
-
Constructor Detail
-
Http2StreamChannelBootstrap
public Http2StreamChannelBootstrap(Channel channel)
-
-
Method Detail
-
option
public <T> Http2StreamChannelBootstrap option(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> Http2StreamChannelBootstrap attr(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 Http2StreamChannelBootstrap handler(ChannelHandler handler)
theChannelHandler
to use for serving the requests.
-
open
public Future<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 Future<Http2StreamChannel> open(Promise<Http2StreamChannel> promise)
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(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise)
Deprecated.should not be used directly. Useopen()
oropen(Promise)
-
-