程序包 | 说明 |
---|---|
io.netty.resolver |
Resolves an arbitrary string that represents the name of an endpoint into an address.
|
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.
|
限定符和类型 | 类和说明 |
---|---|
class |
CompositeNameResolver<T>
A composite
SimpleNameResolver that resolves a host name against a sequence of NameResolver s. |
class |
DefaultNameResolver
A
InetNameResolver that resolves using JDK's built-in domain name lookup mechanism. |
class |
InetNameResolver
A skeletal
NameResolver implementation that resolves InetAddress . |
class |
RoundRobinInetAddressResolver
A
NameResolver that resolves InetAddress and force Round Robin by choosing a single address
randomly in SimpleNameResolver.resolve(String) and SimpleNameResolver.resolve(String, Promise)
if multiple are returned by the NameResolver . |
class |
SimpleNameResolver<T>
A skeletal
NameResolver implementation. |
构造器和说明 |
---|
CompositeNameResolver(EventExecutor executor,
NameResolver<T>... resolvers) |
InetSocketAddressResolver(EventExecutor executor,
NameResolver<java.net.InetAddress> nameResolver) |
RoundRobinInetAddressResolver(EventExecutor executor,
NameResolver<java.net.InetAddress> nameResolver) |
限定符和类型 | 类和说明 |
---|---|
class |
DnsNameResolver
A DNS-based
InetNameResolver . |
限定符和类型 | 方法和说明 |
---|---|
protected NameResolver<java.net.InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
限定符和类型 | 方法和说明 |
---|---|
protected AddressResolver<java.net.InetSocketAddress> |
RoundRobinDnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<java.net.InetAddress> resolver)
We need to override this method, not
DnsAddressResolverGroup.newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) ,
because we need to eliminate possible caching of resolve(java.lang.String)
by InflightNameResolver created in
DnsAddressResolverGroup.newResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) . |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<java.net.InetAddress> resolver)
Creates a new
AddressResolver . |