Package reactor.netty.udp
Class UdpClientConfig
Encapsulate all necessary configuration for UDP client transport. The public API is read-only.
- Since:
- 1.0.0
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionReturn the associatedChannelOperations.OnSetup, config implementations might override this.channelType(boolean isDomainSocket) Return the channel type this configuration is associated with, it can be one of the following.protected ChannelFactory<? extends Channel>connectionFactory(EventLoopGroup elg, boolean isDomainSocket) Return theChannelFactorywhich is used to createChannelinstances.protected AddressResolverGroup<?>Provides a globalAddressResolverGroupfromUdpResourcesthat is shared amongst all UDP clients.protected LoggingHandlerReturn the defaultLoggingHandlerto wiretap this transport.protected LoopResourcesReturn the defaultLoopResourcesfor this transport.protected ChannelMetricsRecorderReturn the configured metrics recorder.final @Nullable InternetProtocolFamilyfamily()Deprecated.as of 1.3.0.final @Nullable SocketProtocolFamilyReturn the configuredSocketProtocolFamilyto run with or null.Methods inherited from class reactor.netty.transport.ClientTransportConfig
channelHash, connectionProvider, defaultConnectionObserver, defaultOnChannelInit, doOnConnect, doOnConnected, doOnDisconnected, eventLoopGroup, getNameResolverProvider, hasProxy, proxyProvider, proxyProvider, proxyProviderSupplier, proxyProviderSupplier, remoteAddress, resolver, resolverInternalMethods inherited from class reactor.netty.transport.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelInitializer, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMap
-
Method Details
-
channelOperationsProvider
Description copied from class:TransportConfigReturn the associatedChannelOperations.OnSetup, config implementations might override this.- Overrides:
channelOperationsProviderin classTransportConfig- Returns:
- the associated
ChannelOperations.OnSetup
-
family
Deprecated.as of 1.3.0. PrefersocketFamily(). This method will be removed in version 1.4.0.Return the configuredInternetProtocolFamilyto run with or null.- Returns:
- the configured
InternetProtocolFamilyto run with or null
-
socketFamily
Return the configuredSocketProtocolFamilyto run with or null.- Returns:
- the configured
SocketProtocolFamilyto run with or null - Since:
- 1.3.0
-
channelType
Description copied from class:TransportConfigReturn the channel type this configuration is associated with, it can be one of the following.- Overrides:
channelTypein classClientTransportConfig<UdpClientConfig>- Parameters:
isDomainSocket- true ifDomainSocketChannelorServerDomainSocketChannelis needed, false otherwise- Returns:
- the channel type this configuration is associated with
-
connectionFactory
protected ChannelFactory<? extends Channel> connectionFactory(EventLoopGroup elg, boolean isDomainSocket) Description copied from class:TransportConfigReturn theChannelFactorywhich is used to createChannelinstances.- Overrides:
connectionFactoryin classTransportConfig- Parameters:
elg- theEventLoopGroupisDomainSocket- true ifDomainSocketChannelorServerDomainSocketChannelis needed, false otherwise- Returns:
- the
ChannelFactorywhich is used to createChannelinstances.
-
defaultAddressResolverGroup
Provides a globalAddressResolverGroupfromUdpResourcesthat is shared amongst all UDP clients.AddressResolverGroupuses the globalLoopResourcesfromUdpResources.- Specified by:
defaultAddressResolverGroupin classClientTransportConfig<UdpClientConfig>- Returns:
- the global
AddressResolverGroup
-
defaultLoggingHandler
Description copied from class:TransportConfigReturn the defaultLoggingHandlerto wiretap this transport.- Specified by:
defaultLoggingHandlerin classTransportConfig- Returns:
- the default
LoggingHandlerto wiretap this transport
-
defaultLoopResources
Description copied from class:TransportConfigReturn the defaultLoopResourcesfor this transport.- Specified by:
defaultLoopResourcesin classTransportConfig- Returns:
- the default
LoopResourcesfor this transport
-
defaultMetricsRecorder
Description copied from class:TransportConfigReturn the configured metrics recorder.- Specified by:
defaultMetricsRecorderin classTransportConfig- Returns:
- the configured metrics recorder
-