Package reactor.netty.udp
Class UdpServerConfig
java.lang.Object
reactor.netty.transport.TransportConfig
reactor.netty.udp.UdpServerConfig
Encapsulate all necessary configuration for UDP server 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 ConnectionObserverReturn the configured defaultConnectionObserver.protected LoggingHandlerReturn the defaultLoggingHandlerto wiretap this transport.protected LoopResourcesReturn the defaultLoopResourcesfor this transport.protected ChannelMetricsRecorderReturn the configured metrics recorder.protected ChannelPipelineConfigurerReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().final @Nullable Consumer<? super UdpServerConfig>doOnBind()Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.protected EventLoopGroupReturn the configuredEventLoopGroup.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.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelHash, 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
-
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
-
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.- Specified by:
channelTypein classTransportConfig- 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.
-
defaultConnectionObserver
Description copied from class:TransportConfigReturn the configured defaultConnectionObserver.- Specified by:
defaultConnectionObserverin classTransportConfig- 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
-
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
-
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
-