public final class Http2StreamChannelBootstrap extends Object
| Constructor and Description |
|---|
Http2StreamChannelBootstrap(io.netty.channel.Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
<T> Http2StreamChannelBootstrap |
attr(io.netty.util.AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
Http2StreamChannel. |
Http2StreamChannelBootstrap |
handler(io.netty.channel.ChannelHandler handler)
the
ChannelHandler to use for serving the requests. |
io.netty.util.concurrent.Future<Http2StreamChannel> |
open()
Open a new
Http2StreamChannel to use. |
io.netty.util.concurrent.Future<Http2StreamChannel> |
open(io.netty.util.concurrent.Promise<Http2StreamChannel> promise)
Open a new
Http2StreamChannel to use and notifies the given Promise. |
void |
open0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.util.concurrent.Promise<Http2StreamChannel> promise)
Deprecated.
should not be used directly. Use
open() or open(Promise) |
<T> Http2StreamChannelBootstrap |
option(io.netty.channel.ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the Http2StreamChannel instances once they got
created. |
public Http2StreamChannelBootstrap(io.netty.channel.Channel channel)
public <T> Http2StreamChannelBootstrap option(io.netty.channel.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(io.netty.util.AttributeKey<T> key, T value)
Http2StreamChannel. If the value is
null, the attribute of the specified key is removed.public Http2StreamChannelBootstrap handler(io.netty.channel.ChannelHandler handler)
ChannelHandler to use for serving the requests.public io.netty.util.concurrent.Future<Http2StreamChannel> open()
Http2StreamChannel to use.Future that will be notified once the channel was opened successfully or it failed.public io.netty.util.concurrent.Future<Http2StreamChannel> open(io.netty.util.concurrent.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(io.netty.channel.ChannelHandlerContext ctx, io.netty.util.concurrent.Promise<Http2StreamChannel> promise)
open() or open(Promise)Copyright © 2008–2025 The Netty Project. All rights reserved.