public final class QuicChannelBootstrap extends Object
QuicChannels and connecting these to remote peers.| Modifier and Type | Method and Description |
|---|---|
<T> QuicChannelBootstrap |
attr(io.netty.util.AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
QuicChannel. |
io.netty.util.concurrent.Future<QuicChannel> |
connect()
Connects a
QuicChannel to the remote peer and notifies the future once done. |
io.netty.util.concurrent.Future<QuicChannel> |
connect(io.netty.util.concurrent.Promise<QuicChannel> promise)
Connects a
QuicChannel to the remote peer and notifies the promise once done. |
QuicChannelBootstrap |
connectionAddress(QuicConnectionAddress connectionAddress)
Set the
QuicConnectionAddress to use. |
QuicChannelBootstrap |
handler(io.netty.channel.ChannelHandler handler)
|
<T> QuicChannelBootstrap |
option(io.netty.channel.ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the QuicChannel instances once they got
created. |
QuicChannelBootstrap |
remoteAddress(SocketAddress remote)
Set the remote address of the host to talk to.
|
<T> QuicChannelBootstrap |
streamAttr(io.netty.util.AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
QuicStreamChannel. |
QuicChannelBootstrap |
streamHandler(io.netty.channel.ChannelHandler streamHandler)
|
<T> QuicChannelBootstrap |
streamOption(io.netty.channel.ChannelOption<T> option,
T value)
Allow to specify a
ChannelOption which is used for the QuicStreamChannel instances once they got
created. |
public <T> QuicChannelBootstrap option(io.netty.channel.ChannelOption<T> option, T value)
ChannelOption which is used for the QuicChannel 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 QuicChannel.value - the value of the option.public <T> QuicChannelBootstrap attr(io.netty.util.AttributeKey<T> key, T value)
QuicChannel. 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 QuicChannelBootstrap handler(io.netty.channel.ChannelHandler handler)
handler - the ChannelHandler that is added to the QuicChannels
ChannelPipeline.public <T> QuicChannelBootstrap streamOption(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 QuicStreamChannels.value - the value of the option.public <T> QuicChannelBootstrap streamAttr(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 QuicStreamChannels.value - the value of the attribute.public QuicChannelBootstrap streamHandler(io.netty.channel.ChannelHandler streamHandler)
streamHandler - the ChannelHandler that is added to the QuicStreamChannels
ChannelPipeline.public QuicChannelBootstrap remoteAddress(SocketAddress remote)
remote - the SocketAddress of the remote peer.public QuicChannelBootstrap connectionAddress(QuicConnectionAddress connectionAddress)
QuicConnectionAddress to use. If none is specified a random address is generated on your
behalf.connectionAddress - the QuicConnectionAddress to use.public io.netty.util.concurrent.Future<QuicChannel> connect()
QuicChannel to the remote peer and notifies the future once done.Future which is notified once the operation completes.public io.netty.util.concurrent.Future<QuicChannel> connect(io.netty.util.concurrent.Promise<QuicChannel> promise)
QuicChannel to the remote peer and notifies the promise once done.promise - the Promise which is notified once the operations completes.Future which is notified once the operation completes.Copyright © 2020–2021 The Netty Project. All rights reserved.