@UnstableApi public final class Http2StreamChannelBootstrap extends java.lang.Object
构造器和说明 |
---|
Http2StreamChannelBootstrap(Channel channel) |
限定符和类型 | 方法和说明 |
---|---|
<T> Http2StreamChannelBootstrap |
attr(AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
Http2StreamChannel . |
Http2StreamChannelBootstrap |
handler(ChannelHandler handler)
the
ChannelHandler to use for serving the requests. |
Future<Http2StreamChannel> |
open()
Open a new
Http2StreamChannel to use. |
Future<Http2StreamChannel> |
open(Promise<Http2StreamChannel> promise)
Open a new
Http2StreamChannel to use and notifies the given Promise . |
void |
open0(ChannelHandlerContext ctx,
Promise<Http2StreamChannel> promise)
已过时。
should not be used directly. Use
open() or open(Promise) |
<T> Http2StreamChannelBootstrap |
option(ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the Http2StreamChannel instances once they got
created. |
public Http2StreamChannelBootstrap(Channel channel)
public <T> Http2StreamChannelBootstrap option(ChannelOption<T> option, T value)
ChannelOption
which is used for the Http2StreamChannel
instances once they got
created. Use a value of null
to remove a previous set ChannelOption
.public <T> Http2StreamChannelBootstrap attr(AttributeKey<T> key, T value)
Http2StreamChannel
. If the value
is
null
, the attribute of the specified key
is removed.public Http2StreamChannelBootstrap handler(ChannelHandler handler)
ChannelHandler
to use for serving the requests.public Future<Http2StreamChannel> open()
Http2StreamChannel
to use.Future
that will be notified once the channel was opened successfully or it failed.public Future<Http2StreamChannel> open(Promise<Http2StreamChannel> promise)
Http2StreamChannel
to use and notifies the given Promise
.Future
that will be notified once the channel was opened successfully or it failed.@Deprecated public void open0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise)
open()
or open(Promise)