public final class UdpClientConfig extends ClientTransportConfig<UdpClientConfig>
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 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.
|
io.netty.channel.socket.InternetProtocolFamily |
family()
Return the configured
InternetProtocolFamily to run with or null |
channelHash, connectionProvider, defaultConnectionObserver, defaultOnChannelInit, doOnConnect, doOnConnected, doOnDisconnected, eventLoopGroup, getNameResolverProvider, hasProxy, proxyProvider, proxyProvider, remoteAddress, resolver, resolverInternal
attributes, bindAddress, channelGroup, channelInitializer, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, options, updateMap
public final ChannelOperations.OnSetup channelOperationsProvider()
TransportConfig
ChannelOperations.OnSetup
, config implementations might override thischannelOperationsProvider
in class TransportConfig
ChannelOperations.OnSetup
@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)
TransportConfig
SocketChannel
ServerSocketChannel
DomainSocketChannel
ServerDomainSocketChannel
DatagramChannel
channelType
in class ClientTransportConfig<UdpClientConfig>
isDomainSocket
- 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)
TransportConfig
ChannelFactory
which is used to create Channel
instances.connectionFactory
in class TransportConfig
elg
- the EventLoopGroup
isDomainSocket
- true if DomainSocketChannel
or
ServerDomainSocketChannel
is needed, false otherwiseChannelFactory
which is used to create Channel
instances.protected io.netty.handler.logging.LoggingHandler defaultLoggingHandler()
TransportConfig
LoggingHandler
to wiretap this transportdefaultLoggingHandler
in class TransportConfig
LoggingHandler
to wiretap this transportprotected LoopResources defaultLoopResources()
TransportConfig
LoopResources
for this transportdefaultLoopResources
in class TransportConfig
LoopResources
for this transportprotected ChannelMetricsRecorder defaultMetricsRecorder()
TransportConfig
defaultMetricsRecorder
in class TransportConfig