@UnstableApi
public final class Http2StreamChannelBootstrap
extends java.lang.Object
Constructor and Description |
---|
Http2StreamChannelBootstrap(Channel channel) |
Modifier and Type | Method and Description |
---|---|
<T> Http2StreamChannelBootstrap |
attr(AttributeKey<T> key, T value)
允许指定新创建的 Http2StreamChannel 的初始属性。
|
Http2StreamChannelBootstrap |
handler(ChannelHandler handler)
用于提供请求的 ChannelHandler 。
|
Future<Http2StreamChannel> |
open() |
Future<Http2StreamChannel> |
open(Promise<Http2StreamChannel> promise) |
void |
open0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise) |
<T> Http2StreamChannelBootstrap |
option(ChannelOption<T> option, T value)
允许指定 ChannelOption 其用于Http2StreamChannel 种情况下,一旦他们得到了创建。
|
public Http2StreamChannelBootstrap(Channel channel)
public <T> Http2StreamChannelBootstrap option(ChannelOption<T> option, T value)
ChannelOption
其用于Http2StreamChannel
种情况下,一旦他们得到了创建。
使用值null
删除以前的一组ChannelOption
。
public <T> Http2StreamChannelBootstrap attr(AttributeKey<T> key, T value)
Http2StreamChannel
的初始属性。
如果value
是null
,则删除指定的key
的属性。
public Http2StreamChannelBootstrap handler(ChannelHandler handler)
ChannelHandler
用于提供请求。
public Future<Http2StreamChannel> open()
public Future<Http2StreamChannel> open(Promise<Http2StreamChannel> promise)
public void open0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise)
Copyright © 2008–2018 The Netty Project. All rights reserved.