public final class SequentialDnsServerAddressStreamProvider extends Object
DnsServerAddressStreamProvider
which is backed by a sequential list of DNS servers.Constructor and Description |
---|
SequentialDnsServerAddressStreamProvider(InetSocketAddress... addresses)
Create a new instance.
|
SequentialDnsServerAddressStreamProvider(Iterable<? extends InetSocketAddress> addresses)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
DnsServerAddressStream |
nameServerAddressStream(String hostname)
Ask this provider for the name servers to query for
hostname . |
public SequentialDnsServerAddressStreamProvider(InetSocketAddress... addresses)
addresses
- The addresses which will be returned in sequential order via
nameServerAddressStream(String)
public SequentialDnsServerAddressStreamProvider(Iterable<? extends InetSocketAddress> addresses)
addresses
- The addresses which will be returned in sequential order via
nameServerAddressStream(String)
public final DnsServerAddressStream nameServerAddressStream(String hostname)
DnsServerAddressStreamProvider
hostname
.nameServerAddressStream
in interface DnsServerAddressStreamProvider
hostname
- The hostname for which to lookup the DNS server addressed to use.
If this is the final DnsServerAddressStreamProvider
to be queried then generally empty
string or '.'
correspond to the default DnsServerAddressStream
.DnsServerAddressStream
which should be used to resolve hostname
.Copyright © 2008–2024 The Netty Project. All rights reserved.