Interface QuicChannel
-
- All Superinterfaces:
AttributeMap
,Channel
,ChannelOutboundInvoker
,java.lang.Comparable<Channel>
public interface QuicChannel extends Channel
A QUICChannel
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ChannelFuture
bind(java.net.SocketAddress localAddress)
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
bind(java.net.SocketAddress localAddress, ChannelPromise promise)
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
close()
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
close(boolean applicationClose, int error, ByteBuf reason)
Close theQuicChannel
ChannelFuture
close(boolean applicationClose, int error, ByteBuf reason, ChannelPromise promise)
Close theQuicChannel
default ChannelFuture
close(ChannelPromise promise)
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default Future<QuicConnectionPathStats>
collectPathStats(int pathIdx)
Collects statistics about the path of the connection and notifies theFuture
once done.Future<QuicConnectionPathStats>
collectPathStats(int pathIdx, Promise<QuicConnectionPathStats> promise)
Collects statistics about the path of the connection and notifies thePromise
once done.default Future<QuicConnectionStats>
collectStats()
Collects statistics about the connection and notifies theFuture
once done.Future<QuicConnectionStats>
collectStats(Promise<QuicConnectionStats> promise)
Collects statistics about the connection and notifies thePromise
once done.QuicChannelConfig
config()
Returns the configuration of this channel.default ChannelFuture
connect(java.net.SocketAddress remoteAddress)
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
connect(java.net.SocketAddress remoteAddress, ChannelPromise promise)
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, ChannelPromise promise)
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default Future<QuicStreamChannel>
createStream(QuicStreamType type, @Nullable ChannelHandler handler)
Creates a stream that is using thisQuicChannel
and notifies theFuture
once done.Future<QuicStreamChannel>
createStream(QuicStreamType type, @Nullable ChannelHandler handler, Promise<QuicStreamChannel> promise)
Creates a stream that is using thisQuicChannel
and notifies thePromise
once done.default ChannelFuture
deregister()
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
deregister(ChannelPromise promise)
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
disconnect()
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.default ChannelFuture
disconnect(ChannelPromise promise)
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.QuicChannel
flush()
Request to flush all pending messages via this ChannelOutboundInvoker.boolean
isTimedOut()
Returnstrue
if the connection was closed because of idle timeout.@Nullable QuicConnectionAddress
localAddress()
Returns the localQuicConnectionAddress
.@Nullable java.net.SocketAddress
localSocketAddress()
Returns the localSocketAddress
of the underlying transport that received the data.static QuicChannelBootstrap
newBootstrap(Channel channel)
Creates a newQuicChannelBootstrap
that can be used to create and connect newQuicChannel
s to endpoints using the givenChannel
as transport layer.default ChannelFuture
newFailedFuture(java.lang.Throwable cause)
Create a newChannelFuture
which is marked as failed already.default ChannelProgressivePromise
newProgressivePromise()
Return an newChannelProgressivePromise
default ChannelPromise
newPromise()
Return a newChannelPromise
.default QuicStreamChannelBootstrap
newStreamBootstrap()
Returns a newQuicStreamChannelBootstrap
which makes it easy to bootstrap newQuicStreamChannel
s with custom options and attributes.default ChannelFuture
newSucceededFuture()
Create a newChannelFuture
which is marked as succeeded already.long
peerAllowedStreams(QuicStreamType type)
Returns the number of streams that can be created before stream creation will fail withQuicTransportError.STREAM_LIMIT_ERROR
error.@Nullable QuicTransportParameters
peerTransportParameters()
Returns theQuicTransportParameters
of the peer once received, ornull
if not known yet.QuicChannel
read()
Request to Read data from theChannel
into the first inbound buffer, triggers anChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
event if data was read, and triggers achannelReadComplete
event so the handler can decide to continue reading.@Nullable QuicConnectionAddress
remoteAddress()
Returns the remoteQuicConnectionAddress
.@Nullable java.net.SocketAddress
remoteSocketAddress()
Returns the remoteSocketAddress
of the underlying transport to which the data is sent.@Nullable javax.net.ssl.SSLEngine
sslEngine()
Returns the usedSSLEngine
ornull
if none is used (yet).default ChannelPromise
voidPromise()
Return a special ChannelPromise which can be reused for different operations.default ChannelFuture
write(java.lang.Object msg)
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
.default ChannelFuture
write(java.lang.Object msg, ChannelPromise promise)
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
.default ChannelFuture
writeAndFlush(java.lang.Object msg)
Shortcut for callChannelOutboundInvoker.write(Object)
andChannelOutboundInvoker.flush()
.default ChannelFuture
writeAndFlush(java.lang.Object msg, ChannelPromise promise)
Shortcut for callChannelOutboundInvoker.write(Object, ChannelPromise)
andChannelOutboundInvoker.flush()
.-
Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
-
Methods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, getOption, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, setOption, unsafe
-
-
-
-
Method Detail
-
bind
default ChannelFuture bind(java.net.SocketAddress localAddress)
Description copied from interface:ChannelOutboundInvoker
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.bind(ChannelHandlerContext, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
bind
in interfaceChannel
- Specified by:
bind
in interfaceChannelOutboundInvoker
-
connect
default ChannelFuture connect(java.net.SocketAddress remoteAddress)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.If the connection fails because of a connection timeout, the
ChannelFuture
will get failed with aConnectTimeoutException
. If it fails because of connection refused aConnectException
will be used.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannel
- Specified by:
connect
in interfaceChannelOutboundInvoker
-
connect
default ChannelFuture connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannel
- Specified by:
connect
in interfaceChannelOutboundInvoker
-
disconnect
default ChannelFuture disconnect()
Description copied from interface:ChannelOutboundInvoker
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.disconnect(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
disconnect
in interfaceChannel
- Specified by:
disconnect
in interfaceChannelOutboundInvoker
-
close
default ChannelFuture close()
Description copied from interface:ChannelOutboundInvoker
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again.This will result in having the
ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceChannelOutboundInvoker
-
deregister
default ChannelFuture deregister()
Description copied from interface:ChannelOutboundInvoker
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error.This will result in having the
ChannelOutboundHandler.deregister(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
deregister
in interfaceChannel
- Specified by:
deregister
in interfaceChannelOutboundInvoker
-
bind
default ChannelFuture bind(java.net.SocketAddress localAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to bind to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.bind(ChannelHandlerContext, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
bind
in interfaceChannel
- Specified by:
bind
in interfaceChannelOutboundInvoker
-
connect
default ChannelFuture connect(java.net.SocketAddress remoteAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelFuture
will be notified.If the connection fails because of a connection timeout, the
ChannelFuture
will get failed with aConnectTimeoutException
. If it fails because of connection refused aConnectException
will be used.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannel
- Specified by:
connect
in interfaceChannelOutboundInvoker
-
connect
default ChannelFuture connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to connect to the givenSocketAddress
while bind to the localAddress and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified and also returned.This will result in having the
ChannelOutboundHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
connect
in interfaceChannel
- Specified by:
connect
in interfaceChannelOutboundInvoker
-
disconnect
default ChannelFuture disconnect(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to disconnect from the remote peer and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.disconnect(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
disconnect
in interfaceChannel
- Specified by:
disconnect
in interfaceChannelOutboundInvoker
-
close
default ChannelFuture close(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to close theChannel
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.close(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceChannelOutboundInvoker
-
deregister
default ChannelFuture deregister(ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to deregister from the previous assignedEventExecutor
and notify theChannelFuture
once the operation completes, either because the operation was successful or because of an error. The givenChannelPromise
will be notified.This will result in having the
ChannelOutboundHandler.deregister(ChannelHandlerContext, ChannelPromise)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
deregister
in interfaceChannel
- Specified by:
deregister
in interfaceChannelOutboundInvoker
-
write
default ChannelFuture write(java.lang.Object msg)
Description copied from interface:ChannelOutboundInvoker
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
. This method will not request to actual flush, so be sure to callChannelOutboundInvoker.flush()
once you want to request to flush all pending data to the actual transport.- Specified by:
write
in interfaceChannel
- Specified by:
write
in interfaceChannelOutboundInvoker
-
write
default ChannelFuture write(java.lang.Object msg, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Request to write a message via thisChannelHandlerContext
through theChannelPipeline
. This method will not request to actual flush, so be sure to callChannelOutboundInvoker.flush()
once you want to request to flush all pending data to the actual transport.- Specified by:
write
in interfaceChannel
- Specified by:
write
in interfaceChannelOutboundInvoker
-
writeAndFlush
default ChannelFuture writeAndFlush(java.lang.Object msg, ChannelPromise promise)
Description copied from interface:ChannelOutboundInvoker
Shortcut for callChannelOutboundInvoker.write(Object, ChannelPromise)
andChannelOutboundInvoker.flush()
.- Specified by:
writeAndFlush
in interfaceChannel
- Specified by:
writeAndFlush
in interfaceChannelOutboundInvoker
-
writeAndFlush
default ChannelFuture writeAndFlush(java.lang.Object msg)
Description copied from interface:ChannelOutboundInvoker
Shortcut for callChannelOutboundInvoker.write(Object)
andChannelOutboundInvoker.flush()
.- Specified by:
writeAndFlush
in interfaceChannel
- Specified by:
writeAndFlush
in interfaceChannelOutboundInvoker
-
newPromise
default ChannelPromise newPromise()
Description copied from interface:ChannelOutboundInvoker
Return a newChannelPromise
.- Specified by:
newPromise
in interfaceChannel
- Specified by:
newPromise
in interfaceChannelOutboundInvoker
-
newProgressivePromise
default ChannelProgressivePromise newProgressivePromise()
Description copied from interface:ChannelOutboundInvoker
Return an newChannelProgressivePromise
- Specified by:
newProgressivePromise
in interfaceChannel
- Specified by:
newProgressivePromise
in interfaceChannelOutboundInvoker
-
newSucceededFuture
default ChannelFuture newSucceededFuture()
Description copied from interface:ChannelOutboundInvoker
Create a newChannelFuture
which is marked as succeeded already. SoFuture.isSuccess()
will returntrue
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.- Specified by:
newSucceededFuture
in interfaceChannel
- Specified by:
newSucceededFuture
in interfaceChannelOutboundInvoker
-
newFailedFuture
default ChannelFuture newFailedFuture(java.lang.Throwable cause)
Description copied from interface:ChannelOutboundInvoker
Create a newChannelFuture
which is marked as failed already. SoFuture.isSuccess()
will returnfalse
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.- Specified by:
newFailedFuture
in interfaceChannel
- Specified by:
newFailedFuture
in interfaceChannelOutboundInvoker
-
voidPromise
default ChannelPromise voidPromise()
Description copied from interface:ChannelOutboundInvoker
Return a special ChannelPromise which can be reused for different operations.It's only supported to use it for
ChannelOutboundInvoker.write(Object, ChannelPromise)
.Be aware that the returned
Be aware this is an expert feature and should be used with care!ChannelPromise
will not support most operations and should only be used if you want to save an object allocation for every write operation. You will not be able to detect if the operation was complete, only if it failed as the implementation will callChannelPipeline.fireExceptionCaught(Throwable)
in this case.- Specified by:
voidPromise
in interfaceChannel
- Specified by:
voidPromise
in interfaceChannelOutboundInvoker
-
read
QuicChannel read()
Description copied from interface:ChannelOutboundInvoker
Request to Read data from theChannel
into the first inbound buffer, triggers anChannelInboundHandler.channelRead(ChannelHandlerContext, Object)
event if data was read, and triggers achannelReadComplete
event so the handler can decide to continue reading. If there's a pending read operation already, this method does nothing.This will result in having the
ChannelOutboundHandler.read(ChannelHandlerContext)
method called of the nextChannelOutboundHandler
contained in theChannelPipeline
of theChannel
.- Specified by:
read
in interfaceChannel
- Specified by:
read
in interfaceChannelOutboundInvoker
-
flush
QuicChannel flush()
Description copied from interface:ChannelOutboundInvoker
Request to flush all pending messages via this ChannelOutboundInvoker.- Specified by:
flush
in interfaceChannel
- Specified by:
flush
in interfaceChannelOutboundInvoker
-
config
QuicChannelConfig config()
Returns the configuration of this channel.
-
sslEngine
@Nullable @Nullable javax.net.ssl.SSLEngine sslEngine()
Returns the usedSSLEngine
ornull
if none is used (yet).- Returns:
- the engine.
-
peerAllowedStreams
long peerAllowedStreams(QuicStreamType type)
Returns the number of streams that can be created before stream creation will fail withQuicTransportError.STREAM_LIMIT_ERROR
error.- Parameters:
type
- the stream type.- Returns:
- the number of streams left.
-
isTimedOut
boolean isTimedOut()
Returnstrue
if the connection was closed because of idle timeout.- Returns:
true
if the connection was closed because of idle timeout,false
.
-
peerTransportParameters
@Nullable @Nullable QuicTransportParameters peerTransportParameters()
Returns theQuicTransportParameters
of the peer once received, ornull
if not known yet.- Returns:
- peerTransportParams.
-
localAddress
@Nullable @Nullable QuicConnectionAddress localAddress()
Returns the localQuicConnectionAddress
. This address might change over the life-time of the channel.- Specified by:
localAddress
in interfaceChannel
- Returns:
- local the local
QuicConnectionAddress
ornull
if none is assigned yet, or assigned anymore.
-
remoteAddress
@Nullable @Nullable QuicConnectionAddress remoteAddress()
Returns the remoteQuicConnectionAddress
. This address might change over the life-time of the channel.- Specified by:
remoteAddress
in interfaceChannel
- Returns:
- remote the remote
QuicConnectionAddress
ornull
if none is assigned yet, or assigned anymore.
-
localSocketAddress
@Nullable @Nullable java.net.SocketAddress localSocketAddress()
Returns the localSocketAddress
of the underlying transport that received the data. This address might change over the life-time of the channel.- Returns:
- local the local
SocketAddress
of the underlying transport ornull
if none is assigned yet, or assigned anymore.
-
remoteSocketAddress
@Nullable @Nullable java.net.SocketAddress remoteSocketAddress()
Returns the remoteSocketAddress
of the underlying transport to which the data is sent. This address might change over the life-time of the channel.- Returns:
- local the remote
SocketAddress
of the underlying transport ornull
if none is assigned yet, or assigned anymore.
-
createStream
default Future<QuicStreamChannel> createStream(QuicStreamType type, @Nullable @Nullable ChannelHandler handler)
Creates a stream that is using thisQuicChannel
and notifies theFuture
once done. TheChannelHandler
(if notnull
) is added to theChannelPipeline
of theQuicStreamChannel
automatically.- Parameters:
type
- theQuicStreamType
of theQuicStreamChannel
.handler
- theChannelHandler
that will be added to theQuicStreamChannel
sChannelPipeline
during the stream creation.- Returns:
- the
Future
that will be notified once the operation completes.
-
createStream
Future<QuicStreamChannel> createStream(QuicStreamType type, @Nullable @Nullable ChannelHandler handler, Promise<QuicStreamChannel> promise)
Creates a stream that is using thisQuicChannel
and notifies thePromise
once done. TheChannelHandler
(if notnull
) is added to theChannelPipeline
of theQuicStreamChannel
automatically.- Parameters:
type
- theQuicStreamType
of theQuicStreamChannel
.handler
- theChannelHandler
that will be added to theQuicStreamChannel
sChannelPipeline
during the stream creation.promise
- theChannelPromise
that will be notified once the operation completes.- Returns:
- the
Future
that will be notified once the operation completes.
-
newStreamBootstrap
default QuicStreamChannelBootstrap newStreamBootstrap()
Returns a newQuicStreamChannelBootstrap
which makes it easy to bootstrap newQuicStreamChannel
s with custom options and attributes. For simpler use-cases you may want to consider usingcreateStream(QuicStreamType, ChannelHandler)
orcreateStream(QuicStreamType, ChannelHandler, Promise)
directly.- Returns:
QuicStreamChannelBootstrap
that can be used to bootstrap aQuicStreamChannel
.
-
close
default ChannelFuture close(boolean applicationClose, int error, ByteBuf reason)
Close theQuicChannel
- Parameters:
applicationClose
-true
if an application close should be used,false
if a normal close should be used.error
- the application error number, or0
if no special error should be signaled.reason
- the reason for the closure (which may be an emptyByteBuf
.- Returns:
- the future that is notified.
-
close
ChannelFuture close(boolean applicationClose, int error, ByteBuf reason, ChannelPromise promise)
Close theQuicChannel
- Parameters:
applicationClose
-true
if an application close should be used,false
if a normal close should be used.error
- the application error number, or0
if no special error should be signaled.reason
- the reason for the closure (which may be an emptyByteBuf
.promise
- theChannelPromise
that will be notified.- Returns:
- the future that is notified.
-
collectStats
default Future<QuicConnectionStats> collectStats()
Collects statistics about the connection and notifies theFuture
once done.- Returns:
- the
Future
that is notified once the stats were collected.
-
collectStats
Future<QuicConnectionStats> collectStats(Promise<QuicConnectionStats> promise)
Collects statistics about the connection and notifies thePromise
once done.- Parameters:
promise
- theChannelPromise
that is notified once the stats were collected.- Returns:
- the
Future
that is notified once the stats were collected.
-
collectPathStats
default Future<QuicConnectionPathStats> collectPathStats(int pathIdx)
Collects statistics about the path of the connection and notifies theFuture
once done.- Returns:
- the
Future
that is notified once the stats were collected.
-
collectPathStats
Future<QuicConnectionPathStats> collectPathStats(int pathIdx, Promise<QuicConnectionPathStats> promise)
Collects statistics about the path of the connection and notifies thePromise
once done.- Parameters:
promise
- theChannelPromise
that is notified once the stats were collected.- Returns:
- the
Future
that is notified once the stats were collected.
-
newBootstrap
static QuicChannelBootstrap newBootstrap(Channel channel)
Creates a newQuicChannelBootstrap
that can be used to create and connect newQuicChannel
s to endpoints using the givenChannel
as transport layer.- Parameters:
channel
- theChannel
that is used as transport layer.- Returns:
QuicChannelBootstrap
that can be used to bootstrap a client sideQuicChannel
.
-
-