Package io.netty.handler.codec.http2
Class Http2StreamChannelBootstrap
java.lang.Object
io.netty.handler.codec.http2.Http2StreamChannelBootstrap
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<AttributeKey<?>, Object> private final Channel
private static final Map.Entry<AttributeKey<?>,
Object>[] private static final Map.Entry<ChannelOption<?>,
Object>[] private ChannelHandler
private static final InternalLogger
private ChannelHandlerContext
private final Map
<ChannelOption<?>, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattr
(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdHttp2StreamChannel
.private ChannelHandlerContext
findCtx()
handler
(ChannelHandler handler) theChannelHandler
to use for serving the requests.private void
open()
Open a newHttp2StreamChannel
to use.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.option
(ChannelOption<T> option, T value) Allow to specify aChannelOption
which is used for theHttp2StreamChannel
instances once they got created.private static void
setAttributes
(Channel channel, Map.Entry<AttributeKey<?>, Object>[] options) private static void
setChannelOption
(Channel channel, ChannelOption<?> option, Object value) private static void
setChannelOptions
(Channel channel, Map.Entry<ChannelOption<?>, Object>[] options)
-
Field Details
-
logger
-
EMPTY_OPTION_ARRAY
-
EMPTY_ATTRIBUTE_ARRAY
-
options
-
attrs
-
channel
-
handler
-
multiplexCtx
-
-
Constructor Details
-
Http2StreamChannelBootstrap
-
-
Method Details
-
option
Allow to specify aChannelOption
which is used for theHttp2StreamChannel
instances once they got created. Use a value ofnull
to remove a previous setChannelOption
. -
attr
Allow to specify an initial attribute of the newly createdHttp2StreamChannel
. If thevalue
isnull
, the attribute of the specifiedkey
is removed. -
handler
theChannelHandler
to use for serving the requests. -
open
Open a newHttp2StreamChannel
to use.- Returns:
- the
Future
that will be notified once the channel was opened successfully or it failed.
-
open
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.
-
findCtx
- Throws:
ClosedChannelException
-
open0
Deprecated.should not be used directly. Useopen()
oropen(Promise)
-
init
-
setChannelOptions
private static void setChannelOptions(Channel channel, Map.Entry<ChannelOption<?>, Object>[] options) -
setChannelOption
-
setAttributes
-