public final class UdpServerConfig extends TransportConfig
| Modifier and Type | Method and Description |
|---|---|
ChannelOperations.OnSetup |
channelOperationsProvider()
Return the associated
ChannelOperations.OnSetup, config implementations might override this |
protected java.lang.Class<? extends io.netty.channel.Channel> |
channelType(boolean isDomainSocket)
Return the channel type this configuration is associated with, it can be one of the following:
SocketChannel
ServerSocketChannel
DomainSocketChannel
ServerDomainSocketChannel
DatagramChannel
|
protected io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> |
connectionFactory(io.netty.channel.EventLoopGroup elg,
boolean isDomainSocket)
Return the
ChannelFactory which is used to create Channel instances. |
protected ConnectionObserver |
defaultConnectionObserver()
Return the configured default
ConnectionObserver. |
protected io.netty.handler.logging.LoggingHandler |
defaultLoggingHandler()
Return the default
LoggingHandler to wiretap this transport |
protected LoopResources |
defaultLoopResources()
Return the default
LoopResources for this transport |
protected ChannelMetricsRecorder |
defaultMetricsRecorder()
Return the configured metrics recorder.
|
protected ChannelPipelineConfigurer |
defaultOnChannelInit()
Return the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer() |
java.util.function.Consumer<? super UdpServerConfig> |
doOnBind()
Return the configured callback or null
|
java.util.function.Consumer<? super Connection> |
doOnBound()
Return the configured callback or null
|
java.util.function.Consumer<? super Connection> |
doOnUnbound()
Return the configured callback or null
|
protected io.netty.channel.EventLoopGroup |
eventLoopGroup()
Return the configured
EventLoopGroup. |
io.netty.channel.socket.InternetProtocolFamily |
family()
Return the configured
InternetProtocolFamily to run with or null |
attributes, bindAddress, channelGroup, channelHash, channelInitializer, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, options, updateMappublic ChannelOperations.OnSetup channelOperationsProvider()
TransportConfigChannelOperations.OnSetup, config implementations might override thischannelOperationsProvider in class TransportConfigChannelOperations.OnSetup@Nullable public final java.util.function.Consumer<? super UdpServerConfig> doOnBind()
@Nullable public final java.util.function.Consumer<? super Connection> doOnBound()
@Nullable public final java.util.function.Consumer<? super Connection> doOnUnbound()
@Nullable public final io.netty.channel.socket.InternetProtocolFamily family()
InternetProtocolFamily to run with or nullInternetProtocolFamily to run with or nullprotected java.lang.Class<? extends io.netty.channel.Channel> channelType(boolean isDomainSocket)
TransportConfigSocketChannelServerSocketChannelDomainSocketChannelServerDomainSocketChannelDatagramChannelchannelType in class TransportConfigisDomainSocket - true if DomainSocketChannel or
ServerDomainSocketChannel is needed, false otherwiseprotected io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> connectionFactory(io.netty.channel.EventLoopGroup elg,
boolean isDomainSocket)
TransportConfigChannelFactory which is used to create Channel instances.connectionFactory in class TransportConfigelg - the EventLoopGroupisDomainSocket - true if DomainSocketChannel or
ServerDomainSocketChannel is needed, false otherwiseChannelFactory which is used to create Channel instances.protected ConnectionObserver defaultConnectionObserver()
TransportConfigConnectionObserver.defaultConnectionObserver in class TransportConfigConnectionObserverprotected io.netty.handler.logging.LoggingHandler defaultLoggingHandler()
TransportConfigLoggingHandler to wiretap this transportdefaultLoggingHandler in class TransportConfigLoggingHandler to wiretap this transportprotected LoopResources defaultLoopResources()
TransportConfigLoopResources for this transportdefaultLoopResources in class TransportConfigLoopResources for this transportprotected ChannelMetricsRecorder defaultMetricsRecorder()
TransportConfigdefaultMetricsRecorder in class TransportConfigprotected ChannelPipelineConfigurer defaultOnChannelInit()
TransportConfigChannelPipelineConfigurer.emptyConfigurer()defaultOnChannelInit in class TransportConfigChannelPipelineConfigurer.emptyConfigurer()protected io.netty.channel.EventLoopGroup eventLoopGroup()
TransportConfigEventLoopGroup.eventLoopGroup in class TransportConfigEventLoopGroup