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 theChannelFactory
which is used to createChannel
instances.protected ConnectionObserver
Return the configured defaultConnectionObserver
.protected LoggingHandler
Return the defaultLoggingHandler
to wiretap this transport.protected LoopResources
Return the defaultLoopResources
for this transport.protected ChannelMetricsRecorder
Return the configured metrics recorder.protected ChannelPipelineConfigurer
Return 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 EventLoopGroup
Return the configuredEventLoopGroup
.final @Nullable InternetProtocolFamily
family()
Deprecated.as of 1.3.0.final @Nullable SocketProtocolFamily
Return the configuredSocketProtocolFamily
to 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:TransportConfig
Return the associatedChannelOperations.OnSetup
, config implementations might override this.- Overrides:
channelOperationsProvider
in 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 configuredInternetProtocolFamily
to run with or null.- Returns:
- the configured
InternetProtocolFamily
to run with or null
-
socketFamily
Return the configuredSocketProtocolFamily
to run with or null.- Returns:
- the configured
SocketProtocolFamily
to run with or null - Since:
- 1.3.0
-
channelType
Description copied from class:TransportConfig
Return the channel type this configuration is associated with, it can be one of the following.- Specified by:
channelType
in classTransportConfig
- Parameters:
isDomainSocket
- true ifDomainSocketChannel
orServerDomainSocketChannel
is 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:TransportConfig
Return theChannelFactory
which is used to createChannel
instances.- Overrides:
connectionFactory
in classTransportConfig
- Parameters:
elg
- theEventLoopGroup
isDomainSocket
- true ifDomainSocketChannel
orServerDomainSocketChannel
is needed, false otherwise- Returns:
- the
ChannelFactory
which is used to createChannel
instances.
-
defaultConnectionObserver
Description copied from class:TransportConfig
Return the configured defaultConnectionObserver
.- Specified by:
defaultConnectionObserver
in classTransportConfig
- Returns:
- the configured default
ConnectionObserver
-
defaultLoggingHandler
Description copied from class:TransportConfig
Return the defaultLoggingHandler
to wiretap this transport.- Specified by:
defaultLoggingHandler
in classTransportConfig
- Returns:
- the default
LoggingHandler
to wiretap this transport
-
defaultLoopResources
Description copied from class:TransportConfig
Return the defaultLoopResources
for this transport.- Specified by:
defaultLoopResources
in classTransportConfig
- Returns:
- the default
LoopResources
for this transport
-
defaultMetricsRecorder
Description copied from class:TransportConfig
Return the configured metrics recorder.- Specified by:
defaultMetricsRecorder
in classTransportConfig
- Returns:
- the configured metrics recorder
-
defaultOnChannelInit
Description copied from class:TransportConfig
Return the default callback if any orChannelPipelineConfigurer.emptyConfigurer()
.- Specified by:
defaultOnChannelInit
in classTransportConfig
- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-
eventLoopGroup
Description copied from class:TransportConfig
Return the configuredEventLoopGroup
.- Specified by:
eventLoopGroup
in classTransportConfig
- Returns:
- the configured
EventLoopGroup
-