Class Http2StreamChannelBootstrap
java.lang.Object
io.netty.handler.codec.http2.Http2StreamChannelBootstrap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattr(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdHttp2StreamChannel.handler(ChannelHandler handler) theChannelHandlerto use for serving the requests.open()Open a newHttp2StreamChannelto use.open(Promise<Http2StreamChannel> promise) Open a newHttp2StreamChannelto use and notifies the givenPromise.voidopen0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise) Deprecated.should not be used directly.option(ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created.
-
Constructor Details
-
Http2StreamChannelBootstrap
-
-
Method Details
-
option
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
Open a newHttp2StreamChannelto use.- Returns:
- the
Futurethat will be notified once the channel was opened successfully or it failed.
-
open
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.should not be used directly. Useopen()oropen(Promise)
-