软件包 | 描述 |
---|---|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Method and Description |
---|---|
static DnsServerAddresses |
DnsServerAddresses.defaultAddresses()
已过时。
使用
DefaultDnsServerAddressStreamProvider.defaultAddresses() 。
返回依次产生系统DNS服务器地址的 此方法与以下代码具有相同的效果: DnsServerAddresses.sequential(DnsServerAddresses.defaultAddressList());
|
static DnsServerAddresses |
DefaultDnsServerAddressStreamProvider.defaultAddresses()
返回依次产生系统DNS服务器地址的 DnsServerAddresses 。
|
static DnsServerAddresses |
DnsServerAddresses.rotational(java.net.InetSocketAddress... addresses)
返回以循环顺序产生指定的 addresses 。
|
static DnsServerAddresses |
DnsServerAddresses.rotational(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
返回以循环顺序产生指定的 addresses 。
|
static DnsServerAddresses |
DnsServerAddresses.sequential(java.net.InetSocketAddress... addresses)
返回 DnsServerAddresses 其产生指定addresses 顺序。
|
static DnsServerAddresses |
DnsServerAddresses.sequential(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
返回 DnsServerAddresses 其产生指定addresses 顺序。
|
static DnsServerAddresses |
DnsServerAddresses.shuffled(java.net.InetSocketAddress... addresses)
返回 DnsServerAddresses 能产生指定的addresses 的洗牌秩序。
|
static DnsServerAddresses |
DnsServerAddresses.shuffled(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
返回 DnsServerAddresses 能产生指定的address 的洗牌秩序。
|
static DnsServerAddresses |
DnsServerAddresses.singleton(java.net.InetSocketAddress address)
返回 DnsServerAddresses 只产生一个address 。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.