AddressResolverGroup
of DnsNameResolver
s that supports random selection of destination addresses if
multiple are provided by the nameserver. This is ideal for use in applications that use a pool of connections, for
which connecting to a single resolved address would be inefficient.
Access | Constructor and Description |
---|---|
public | |
public | RoundRobinDnsAddressResolverGroup(Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider)
|
public | RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Deprecated
as a consequence of
ChannelFactory being deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected final AddressResolver | newAddressResolver(EventLoop eventLoop, NameResolver<InetAddress> resolver)
Overrides io. newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) ,
because we need to eliminate possible caching of io.
by InflightNameResolver created in
newResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) .
|
RoundRobinDnsAddressResolverGroup | back to summary |
---|---|
public RoundRobinDnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
RoundRobinDnsAddressResolverGroup | back to summary |
---|---|
public RoundRobinDnsAddressResolverGroup(Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider) |
RoundRobinDnsAddressResolverGroup | back to summary |
---|---|
public RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Deprecated as a consequence of |
newAddressResolver | back to summary |
---|---|
protected final AddressResolver Overrides io. We need to override this method, not
|