public final class QuicStreamChannelBootstrap
extends java.lang.Object
QuicStreamChannels.| Modifier and Type | Method and Description |
|---|---|
<T> QuicStreamChannelBootstrap |
attr(io.netty.util.AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
QuicStreamChannel. |
io.netty.util.concurrent.Future<QuicStreamChannel> |
create()
Creates a new
QuicStreamChannel and notifies the Future. |
io.netty.util.concurrent.Future<QuicStreamChannel> |
create(io.netty.util.concurrent.Promise<QuicStreamChannel> promise)
Creates a new
QuicStreamChannel and notifies the Future. |
QuicStreamChannelBootstrap |
handler(io.netty.channel.ChannelHandler streamHandler)
|
<T> QuicStreamChannelBootstrap |
option(io.netty.channel.ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the QuicStreamChannel instances once they got
created. |
QuicStreamChannelBootstrap |
type(QuicStreamType type)
|
public <T> QuicStreamChannelBootstrap option(io.netty.channel.ChannelOption<T> option, T value)
ChannelOption which is used for the QuicStreamChannel instances once they got
created. Use a value of null to remove a previous set ChannelOption.T - the type of the value.option - the ChannelOption to apply to the QuicStreamChannel.value - the value of the option.public <T> QuicStreamChannelBootstrap attr(io.netty.util.AttributeKey<T> key, T value)
QuicStreamChannel. If the value is
null, the attribute of the specified key is removed.T - the type of the value.key - the AttributeKey to apply to the QuicChannel.value - the value of the attribute.public QuicStreamChannelBootstrap handler(io.netty.channel.ChannelHandler streamHandler)
streamHandler - the ChannelHandler that is added to the QuicStreamChannels
ChannelPipeline.public QuicStreamChannelBootstrap type(QuicStreamType type)
type - the QuicStreamType of the QuicStreamChannel.public io.netty.util.concurrent.Future<QuicStreamChannel> create()
QuicStreamChannel and notifies the Future.Future that is notified once the operation completes.public io.netty.util.concurrent.Future<QuicStreamChannel> create(io.netty.util.concurrent.Promise<QuicStreamChannel> promise)
QuicStreamChannel and notifies the Future.promise - the Promise that is notified once the operation completes.Future that is notified once the operation completes.Copyright © 2020-2022 The Netty Project. All Rights Reserved.