Top Fields Constructors Methods
io.netty5.handler.codec.http2

public final Class Http2StreamChannelBootstrap

extends Object
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty5.channel.Channel, .ChannelHandler, .ChannelHandlerContext, .ChannelOption, .ChannelPipeline, io.netty5.util.AttributeKey, io.netty5.util.concurrent.EventExecutor, .Future, .Promise, io.netty5.util.internal.StringUtil, .UnstableApi, io.netty5.util.internal.logging.InternalLogger, .InternalLoggerFactory, java.nio.channels.ClosedChannelException, java.util.LinkedHashMap, .Map, java.util.concurrent.ConcurrentHashMap

Field Summary

Modifier and TypeField and Description
private final Map<AttributeKey<?>, Object>
private final Channel
private static final Map.Entry<AttributeKey<?>, Object>[]
private static final Map.Entry<ChannelOption<?>, Object>[]
private volatile ChannelHandler
private static final InternalLogger
private volatile ChannelHandlerContext
private final Map<ChannelOption<?>, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> Http2StreamChannelBootstrap
attr(AttributeKey<T> key, T value)

Allow to specify an initial attribute of the newly created Http2StreamChannel.

private ChannelHandlerContext
public Http2StreamChannelBootstrap
handler(ChannelHandler handler)

the ChannelHandler to use for serving the requests.

private void
init(Channel channel)

public Future<Http2StreamChannel>

Returns:

the Future that will be notified once the channel was opened successfully or it failed.
open
()

Open a new Http2StreamChannel to use.

public Future<Http2StreamChannel>

Returns:

the Future that will be notified once the channel was opened successfully or it failed.
open
(final Promise<Http2StreamChannel> promise)

Open a new Http2StreamChannel to use and notifies the given Promise.

public void
open0(ChannelHandlerContext ctx, final Promise<Http2StreamChannel> promise)

Deprecated should not be used directly.
public <T> Http2StreamChannelBootstrap
option(ChannelOption<T> option, T value)

Allow to specify a ChannelOption which is used for the Http2StreamChannel 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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrsback to summary
private final Map<AttributeKey<?>, Object> attrs
channelback to summary
private final Channel channel
EMPTY_ATTRIBUTE_ARRAYback to summary
private static final Map.Entry<AttributeKey<?>, Object>[] EMPTY_ATTRIBUTE_ARRAY
Annotations
@SuppressWarnings:unchecked
EMPTY_OPTION_ARRAYback to summary
private static final Map.Entry<ChannelOption<?>, Object>[] EMPTY_OPTION_ARRAY
Annotations
@SuppressWarnings:unchecked
handlerback to summary
private volatile ChannelHandler handler
loggerback to summary
private static final InternalLogger logger
multiplexCtxback to summary
private volatile ChannelHandlerContext multiplexCtx
optionsback to summary
private final Map<ChannelOption<?>, Object> options

Constructor Detail

Http2StreamChannelBootstrapback to summary
public Http2StreamChannelBootstrap(Channel channel)

Method Detail

attrback to summary
public <T> Http2StreamChannelBootstrap attr(AttributeKey<T> key, T value)

Allow to specify an initial attribute of the newly created Http2StreamChannel. If the value is null, the attribute of the specified key is removed.

findCtxback to summary
private ChannelHandlerContext findCtx() throws ClosedChannelException
Annotations
@SuppressWarnings:deprecation
handlerback to summary
public Http2StreamChannelBootstrap handler(ChannelHandler handler)

the ChannelHandler to use for serving the requests.

initback to summary
private void init(Channel channel)
openback to summary
public Future<Http2StreamChannel> open()

Open a new Http2StreamChannel to use.

Returns:Future<Http2StreamChannel>

the Future that will be notified once the channel was opened successfully or it failed.

openback to summary
public Future<Http2StreamChannel> open(final Promise<Http2StreamChannel> promise)

Open a new Http2StreamChannel to use and notifies the given Promise.

Returns:Future<Http2StreamChannel>

the Future that will be notified once the channel was opened successfully or it failed.

open0back to summary
public void open0(ChannelHandlerContext ctx, final Promise<Http2StreamChannel> promise)

Deprecated

should not be used directly. Use open() or open(Promise)

Annotations
@Deprecated
optionback to summary
public <T> Http2StreamChannelBootstrap option(ChannelOption<T> option, T value)

Allow to specify a ChannelOption which is used for the Http2StreamChannel instances once they got created. Use a value of null to remove a previous set ChannelOption.

setAttributesback to summary
private static void setAttributes(Channel channel, Map.Entry<AttributeKey<?>, Object>[] options)
setChannelOptionback to summary
private static void setChannelOption(Channel channel, ChannelOption<?> option, Object value)
setChannelOptionsback to summary
private static void setChannelOptions(Channel channel, Map.Entry<ChannelOption<?>, Object>[] options)