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 Class<? extends 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 ChannelFactory<? extends Channel> |
connectionFactory(EventLoopGroup elg,
boolean isDomainSocket)
Return the
ChannelFactory which is used to create Channel instances. |
protected ConnectionObserver |
defaultConnectionObserver()
Return the configured default
ConnectionObserver. |
protected 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() |
Consumer<? super UdpServerConfig> |
doOnBind()
Return the configured callback or null
|
Consumer<? super Connection> |
doOnBound()
Return the configured callback or null
|
Consumer<? super Connection> |
doOnUnbound()
Return the configured callback or null
|
protected EventLoopGroup |
eventLoopGroup()
Return the configured
EventLoopGroup. |
InternetProtocolFamily |
family()
Return the configured
InternetProtocolFamily to run with or null |
attributes, bindAddress, channelGroup, channelHash, channelInitializer, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMappublic ChannelOperations.OnSetup channelOperationsProvider()
TransportConfigChannelOperations.OnSetup, config implementations might override thischannelOperationsProvider in class TransportConfigChannelOperations.OnSetup@Nullable public final Consumer<? super UdpServerConfig> doOnBind()
@Nullable public final Consumer<? super Connection> doOnBound()
@Nullable public final Consumer<? super Connection> doOnUnbound()
@Nullable public final InternetProtocolFamily family()
InternetProtocolFamily to run with or nullInternetProtocolFamily to run with or nullprotected Class<? extends Channel> channelType(boolean isDomainSocket)
TransportConfigchannelType in class TransportConfigisDomainSocket - true if DomainSocketChannel or
ServerDomainSocketChannel is needed, false otherwiseprotected ChannelFactory<? extends Channel> connectionFactory(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 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 EventLoopGroup eventLoopGroup()
TransportConfigEventLoopGroup.eventLoopGroup in class TransportConfigEventLoopGroup