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 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 AddressResolverGroup<?> |
defaultAddressResolverGroup()
Provides a global
AddressResolverGroup from UdpResources
that is shared amongst all UDP clients. |
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.
|
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, metricsRecorderInternal, options, updateMap
public final ChannelOperations.OnSetup channelOperationsProvider()
TransportConfig
ChannelOperations.OnSetup
, config implementations might override thischannelOperationsProvider
in class TransportConfig
ChannelOperations.OnSetup
@Nullable public final InternetProtocolFamily family()
InternetProtocolFamily
to run with or nullInternetProtocolFamily
to run with or nullprotected Class<? extends Channel> channelType(boolean isDomainSocket)
TransportConfig
channelType
in class ClientTransportConfig<UdpClientConfig>
isDomainSocket
- true if DomainSocketChannel
or
ServerDomainSocketChannel
is needed, false otherwiseprotected ChannelFactory<? extends Channel> connectionFactory(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 AddressResolverGroup<?> defaultAddressResolverGroup()
AddressResolverGroup
from UdpResources
that is shared amongst all UDP clients. AddressResolverGroup
uses the global
LoopResources
from UdpResources
.defaultAddressResolverGroup
in class ClientTransportConfig<UdpClientConfig>
AddressResolverGroup
protected 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