软件包 | 描述 |
---|---|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache authoritativeDnsServerCache)
设置权威NS服务器的缓存
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelFactory(ChannelFactory<? extends DatagramChannel> channelFactory)
设置 ChannelFactory ,这将创建一个DatagramChannel 。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelType(java.lang.Class<? extends DatagramChannel> channelType)
将 ChannelFactory 设置为此类型的ReflectiveChannelFactory 。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.decodeIdn(boolean decodeIdn)
设置域/主机名是否应在接收时解码为unicode。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.dnsQueryLifecycleObserverFactory(DnsQueryLifecycleObserverFactory lifecycleObserverFactory)
设置用于生成可以观察单个DNS查询的对象的工厂。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.hostsFileEntriesResolver(HostsFileEntriesResolver hostsFileEntriesResolver) |
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxPayloadSize(int maxPayloadSize)
设置数据报包缓冲区的容量(以字节为单位)。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxQueriesPerResolve(int maxQueriesPerResolve)
设置解析主机名时要发送的最大DNS查询数。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.nameServerProvider(DnsServerAddressStreamProvider dnsServerAddressStreamProvider)
设置用于确定哪个DNS服务器用于解析每个主机名的 DnsServerAddressStreamProvider 。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.ndots(int ndots)
设置在进行初始绝对查询之前必须出现在名称中的点数。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.negativeTtl(int negativeTtl)
为失败的DNS查询设置缓存的TTL(以秒为单位)。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.optResourceEnabled(boolean optResourceEnabled)
启用自动包含的可选记录,该记录试图为远程DNS服务器提供解析器可以为每个响应读取多少数据的提示。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.queryTimeoutMillis(long queryTimeoutMillis)
设置此解析器执行的每个DNS查询的超时(以毫秒为单位)。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.recursionDesired(boolean recursionDesired)
设置此解析器是否必须发送带有RD(设置递归)标志的DNS查询。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
设置解析结果的缓存。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(ResolvedAddressTypes resolvedAddressTypes)
设置解析地址的协议族列表。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.searchDomains(java.lang.Iterable<java.lang.String> searchDomains)
设置解析器的搜索域列表。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.traceEnabled(boolean traceEnabled)
设置此解析器是否应该在异常消息中生成详细的跟踪信息,以便更容易理解解决失败的原因。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.ttl(int minTtl, int maxTtl)
Sets the minimum and maximum TTL of the cached DNS resource records (in seconds).
|
Copyright © 2008–2018 The Netty Project. All rights reserved.