软件包 | 描述 |
---|---|
io.netty.resolver |
将表示端点名称的任意字符串解析为地址。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultHostsFileEntriesResolver
默认 HostsFileEntriesResolver ,仅解析主机文件条目一次。
|
Modifier and Type | Field and Description |
---|---|
static HostsFileEntriesResolver |
HostsFileEntriesResolver.DEFAULT
默认实例:a DefaultHostsFileEntriesResolver 。
|
Modifier and Type | Method and Description |
---|---|
HostsFileEntriesResolver |
DnsNameResolver.hostsFileEntriesResolver()
在请求远程DNS服务器之前,返回尝试根据主机文件解析主机名的组件。
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.hostsFileEntriesResolver(HostsFileEntriesResolver hostsFileEntriesResolver) |
Constructor and Description |
---|
DnsNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsCache resolveCache, DnsCache authoritativeDnsServerCache, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, java.lang.String[] searchDomains, int ndots, boolean decodeIdn)
创建一个与指定的DNS服务器列表通信的新的基于DNS的名称解析器。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.