Package reactor.netty.quic
Class QuicClientConfig
java.lang.Object
reactor.netty.transport.TransportConfig
reactor.netty.quic.QuicClientConfig
Encapsulate all necessary configuration for QUIC client transport. The public API is read-only.
- Author:
- Violeta Georgieva
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName prefix that will be used for the QUIC client's metrics registered in Micrometer's global registry. -
Method Summary
Modifier and TypeMethodDescriptionfinal longReturn the configured delay exponent used for ACKs or the default.channelType(boolean isDomainSocket) Return the channel type this configuration is associated with, it can be one of the following.Return the configuredQuicCongestionControlAlgorithmor the default.protected ConnectionObserverReturn the configured defaultConnectionObserver.protected LoggingHandlerReturn the defaultLoggingHandlerto wiretap this transport.protected final LoopResourcesReturn the defaultLoopResourcesfor this transport.protected ChannelMetricsRecorderReturn the configured metrics recorder.protected ChannelPipelineConfigurerReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().final @Nullable Consumer<? super QuicClientConfig>doOnBind()Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.@Nullable Consumer<? super QuicClientConfig>Return the configured callback or null.@Nullable Consumer<? super QuicConnection>Return the configured callback or null.@Nullable Consumer<? super QuicConnection>Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.protected final EventLoopGroupReturn the configuredEventLoopGroup.final @Nullable DurationReturn the configured idle timeout or null.final QuicInitialSettingsSpecReturn the configured QUIC initial settings or the default.final booleanReturn true if active migration is enabled.final booleanisGrease()Return true if greasing is enabled.final booleanReturn true if Hystart is enabled.final intReturn the configured local connection id length that is used or the default.final DurationReturn the configured the max ACK delay or the default.final longReturn the configured the maximum payload size or the default.final longReturn the configured the maximum payload size or the default.protected ChannelInitializer<Channel>final intReturn the configured RECV queue length.Supplier<? extends SocketAddress>Return the remote configuredSocketAddress.final intReturn the configured SEND queue length.final Map<AttributeKey<?>,?> Return the read-only default stream attributes.final ConnectionObserverReturn the configuredConnectionObserverif any orConnectionObserver.emptyListener()for each stream.final Map<ChannelOption<?>,?> Return the read-onlyChannelOptionmap for each stream.protected static <K,V> Map<K, V> Methods inherited from class reactor.netty.transport.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelHash, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options
-
Field Details
-
QUIC_CLIENT_PREFIX
Name prefix that will be used for the QUIC client's metrics registered in Micrometer's global registry.- See Also:
-
-
Method Details
-
doOnConnect
Return the configured callback or null.- Returns:
- the configured callback or null
-
doOnConnected
Return the configured callback or null.- Returns:
- the configured callback or null
-
doOnDisconnected
Return the configured callback or null.- Returns:
- the configured callback or null
-
remoteAddress
Return the remote configuredSocketAddress.- Returns:
- the remote configured
SocketAddress
-
defaultConnectionObserver
Description copied from class:TransportConfigReturn the configured defaultConnectionObserver.- Returns:
- the configured default
ConnectionObserver
-
defaultLoggingHandler
Description copied from class:TransportConfigReturn the defaultLoggingHandlerto wiretap this transport.- Specified by:
defaultLoggingHandlerin classTransportConfig- Returns:
- the default
LoggingHandlerto wiretap this transport
-
defaultMetricsRecorder
Description copied from class:TransportConfigReturn the configured metrics recorder.- Specified by:
defaultMetricsRecorderin classTransportConfig- Returns:
- the configured metrics recorder
-
parentChannelInitializer
-
ackDelayExponent
public final long ackDelayExponent()Return the configured delay exponent used for ACKs or the default.- Returns:
- the configured delay exponent used for ACKs or the default
-
congestionControlAlgorithm
Return the configuredQuicCongestionControlAlgorithmor the default.- Returns:
- the configured
QuicCongestionControlAlgorithmor the default
-
doOnBind
Return the configured callback or null.- Returns:
- the configured callback or null
-
doOnBound
Return the configured callback or null.- Returns:
- the configured callback or null
-
doOnUnbound
Return the configured callback or null.- Returns:
- the configured callback or null
-
idleTimeout
Return the configured idle timeout or null.- Returns:
- the configured idle timeout or null
-
initialSettings
Return the configured QUIC initial settings or the default.- Returns:
- the configured QUIC initial settings or the default
-
isActiveMigration
public final boolean isActiveMigration()Return true if active migration is enabled.- Returns:
- true if active migration is enabled
-
isGrease
public final boolean isGrease()Return true if greasing is enabled.- Returns:
- true if greasing is enabled
-
isHystart
public final boolean isHystart()Return true if Hystart is enabled.- Returns:
- true if Hystart is enabled
-
localConnectionIdLength
public final int localConnectionIdLength()Return the configured local connection id length that is used or the default.- Returns:
- the configured local connection id length that is used or the default
-
maxAckDelay
Return the configured the max ACK delay or the default.- Returns:
- the configured the max ACK delay or the default
-
maxRecvUdpPayloadSize
public final long maxRecvUdpPayloadSize()Return the configured the maximum payload size or the default.- Returns:
- the configured the maximum payload size or the default
-
maxSendUdpPayloadSize
public final long maxSendUdpPayloadSize()Return the configured the maximum payload size or the default.- Returns:
- the configured the maximum payload size or the default
-
recvQueueLen
public final int recvQueueLen()Return the configured RECV queue length.- Returns:
- the configured RECV queue length
-
sendQueueLen
public final int sendQueueLen()Return the configured SEND queue length.- Returns:
- the configured SEND queue length
-
streamAttributes
Return the read-only default stream attributes.- Returns:
- the read-only default stream attributes
-
streamObserver
Return the configuredConnectionObserverif any orConnectionObserver.emptyListener()for each stream.- Returns:
- the configured
ConnectionObserverif any orConnectionObserver.emptyListener()for each stream
-
streamOptions
Return the read-onlyChannelOptionmap for each stream.- Returns:
- the read-only
ChannelOptionmap for each stream
-
channelType
Description copied from class:TransportConfigReturn the channel type this configuration is associated with, it can be one of the following.- Specified by:
channelTypein classTransportConfig- Parameters:
isDomainSocket- true ifDomainSocketChannelorServerDomainSocketChannelis needed, false otherwise- Returns:
- the channel type this configuration is associated with
-
defaultLoopResources
Description copied from class:TransportConfigReturn the defaultLoopResourcesfor this transport.- Specified by:
defaultLoopResourcesin classTransportConfig- Returns:
- the default
LoopResourcesfor this transport
-
defaultOnChannelInit
Description copied from class:TransportConfigReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().- Specified by:
defaultOnChannelInitin classTransportConfig- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-
eventLoopGroup
Description copied from class:TransportConfigReturn the configuredEventLoopGroup.- Specified by:
eventLoopGroupin classTransportConfig- Returns:
- the configured
EventLoopGroup
-
updateMap
-