@UnstableApi
public final class SequentialDnsServerAddressStreamProvider
extends java.lang.Object
DnsServerAddressStreamProvider
,它由一个连续的DNS服务器列表支持。
Constructor and Description |
---|
SequentialDnsServerAddressStreamProvider(java.net.InetSocketAddress... addresses)
创建一个新的实例。
|
SequentialDnsServerAddressStreamProvider(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
创建一个新的实例。
|
Modifier and Type | Method and Description |
---|---|
DnsServerAddressStream |
nameServerAddressStream(java.lang.String hostname)
询问该提供商的名称服务器以查询
hostname 。
|
public SequentialDnsServerAddressStreamProvider(java.net.InetSocketAddress... addresses)
addresses
- 将通过
nameServerAddressStream(String)
按顺序返回的地址
public SequentialDnsServerAddressStreamProvider(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
addresses
- 将通过
nameServerAddressStream(String)
按顺序返回的地址
public final DnsServerAddressStream nameServerAddressStream(java.lang.String hostname)
DnsServerAddressStreamProvider
hostname
。
nameServerAddressStream
在界面
DnsServerAddressStreamProvider
hostname
- 要查找要使用的DNS服务器的主机名。
如果这是要查询的最终DnsServerAddressStreamProvider
,则一般为空字符串或'.'
对应于默认DnsServerAddressStream
。
DnsServerAddressStream
应该用来解决hostname
。
Copyright © 2008–2018 The Netty Project. All rights reserved.