Module io.netty5.resolver.dns
Package io.netty5.resolver.dns
Class SequentialDnsServerAddressStreamProvider
- java.lang.Object
-
- io.netty5.resolver.dns.SequentialDnsServerAddressStreamProvider
-
- All Implemented Interfaces:
DnsServerAddressStreamProvider
public final class SequentialDnsServerAddressStreamProvider extends Object
ADnsServerAddressStreamProvider
which is backed by a sequential list of DNS servers.
-
-
Constructor Summary
Constructors Constructor Description SequentialDnsServerAddressStreamProvider(Iterable<? extends InetSocketAddress> addresses)
Create a new instance.SequentialDnsServerAddressStreamProvider(InetSocketAddress... addresses)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsServerAddressStream
nameServerAddressStream(String hostname)
Ask this provider for the name servers to query forhostname
.
-
-
-
Constructor Detail
-
SequentialDnsServerAddressStreamProvider
public SequentialDnsServerAddressStreamProvider(InetSocketAddress... addresses)
Create a new instance.- Parameters:
addresses
- The addresses which will be be returned in sequential order viaDnsServerAddressStreamProvider.nameServerAddressStream(String)
-
SequentialDnsServerAddressStreamProvider
public SequentialDnsServerAddressStreamProvider(Iterable<? extends InetSocketAddress> addresses)
Create a new instance.- Parameters:
addresses
- The addresses which will be be returned in sequential order viaDnsServerAddressStreamProvider.nameServerAddressStream(String)
-
-
Method Detail
-
nameServerAddressStream
public final DnsServerAddressStream nameServerAddressStream(String hostname)
Description copied from interface:DnsServerAddressStreamProvider
Ask this provider for the name servers to query forhostname
.- Specified by:
nameServerAddressStream
in interfaceDnsServerAddressStreamProvider
- Parameters:
hostname
- The hostname for which to lookup the DNS server addressed to use. If this is the finalDnsServerAddressStreamProvider
to be queried then generally empty string or'.'
correspond to the defaultDnsServerAddressStream
.- Returns:
- The
DnsServerAddressStream
which should be used to resolvehostname
.
-
-