public final class QuicChannelBootstrap
extends java.lang.Object
QuicChannel
s 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 |
earlyDataSendCallBack(EarlyDataSendCallback earlyDataSendCallback)
Set the
EarlyDataSendCallback to use. |
QuicChannelBootstrap |
handler(io.netty.channel.ChannelHandler handler)
|
QuicChannelBootstrap |
localAddress(java.net.SocketAddress local)
Set the local address.
|
<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(java.net.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 QuicChannel
s
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 QuicStreamChannel
s.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 QuicStreamChannel
s.value
- the value of the attribute.public QuicChannelBootstrap streamHandler(io.netty.channel.ChannelHandler streamHandler)
streamHandler
- the ChannelHandler
that is added to the QuicStreamChannel
s
ChannelPipeline
.public QuicChannelBootstrap localAddress(java.net.SocketAddress local)
local
- the SocketAddress
of the local peer.public QuicChannelBootstrap remoteAddress(java.net.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 QuicChannelBootstrap earlyDataSendCallBack(EarlyDataSendCallback earlyDataSendCallback)
EarlyDataSendCallback
to use.earlyDataSendCallback
- the callback.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-2023 The Netty Project. All Rights Reserved.