软件包 | 描述 |
---|---|
io.netty.resolver |
将表示端点名称的任意字符串解析为地址。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAddressResolver<T extends java.net.SocketAddress>
一个骨架 AddressResolver 的实现。
|
class |
InetSocketAddressResolver
A AbstractAddressResolver ,解决InetSocketAddress 。
|
class |
NoopAddressResolver
A AddressResolver 不执行任何决议,但始终报告成功的解决方案。
|
Modifier and Type | Method and Description |
---|---|
AddressResolver<java.net.InetSocketAddress> |
InetNameResolver.asAddressResolver()
返回将在下面使用此名称解析器的 AddressResolver 。
|
AddressResolver<T> |
AddressResolverGroup.getResolver(EventExecutor executor)
返回与指定的 EventExecutor 关联的AddressResolver 。
|
protected AddressResolver<java.net.SocketAddress> |
NoopAddressResolverGroup.newResolver(EventExecutor executor) |
protected AddressResolver<java.net.InetSocketAddress> |
DefaultAddressResolverGroup.newResolver(EventExecutor executor) |
protected abstract AddressResolver<T> |
AddressResolverGroup.newResolver(EventExecutor executor)
|
Modifier and Type | Method and Description |
---|---|
protected AddressResolver<java.net.InetSocketAddress> |
RoundRobinDnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver)
我们需要重写此方法,而不是
DnsAddressResolverGroup.newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) ,因为我们需要消除可能缓存
NameResolver.resolve(java.lang.String) 通过
InflightNameResolver 中创建
DnsAddressResolverGroup.newResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) 。
|
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver)
创建一个新的 AddressResolver 。
|
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventExecutor executor) |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
|
Copyright © 2008–2018 The Netty Project. All rights reserved.