程序包 | 说明 |
---|---|
io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
限定符和类型 | 方法和说明 |
---|---|
static DnsServerAddresses |
DnsServerAddresses.defaultAddresses()
已过时。
Use
DefaultDnsServerAddressStreamProvider.defaultAddresses() .
Returns the This method has the same effect with the following code: DnsServerAddresses.sequential(DnsServerAddresses.defaultAddressList()); |
static DnsServerAddresses |
DefaultDnsServerAddressStreamProvider.defaultAddresses()
Returns the
DnsServerAddresses that yields the system DNS server addresses sequentially. |
static DnsServerAddresses |
DnsServerAddresses.rotational(java.net.InetSocketAddress... addresses)
Returns the
DnsServerAddresses that yields the specified addresses in a rotational sequential
order. |
static DnsServerAddresses |
DnsServerAddresses.rotational(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
Returns the
DnsServerAddresses that yields the specified addresses in a rotational sequential
order. |
static DnsServerAddresses |
DnsServerAddresses.sequential(java.net.InetSocketAddress... addresses)
Returns the
DnsServerAddresses that yields the specified addresses sequentially. |
static DnsServerAddresses |
DnsServerAddresses.sequential(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
Returns the
DnsServerAddresses that yields the specified addresses sequentially. |
static DnsServerAddresses |
DnsServerAddresses.shuffled(java.net.InetSocketAddress... addresses)
Returns the
DnsServerAddresses that yields the specified addresses in a shuffled order. |
static DnsServerAddresses |
DnsServerAddresses.shuffled(java.lang.Iterable<? extends java.net.InetSocketAddress> addresses)
Returns the
DnsServerAddresses that yields the specified address in a shuffled order. |
static DnsServerAddresses |
DnsServerAddresses.singleton(java.net.InetSocketAddress address)
Returns the
DnsServerAddresses that yields only a single address . |