程序包 | 说明 |
---|---|
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 |
AbstractAddressResolver<T extends java.net.SocketAddress>
A skeletal
AddressResolver implementation. |
class |
InetSocketAddressResolver
A
AbstractAddressResolver that resolves InetSocketAddress . |
class |
NoopAddressResolver
A
AddressResolver that does not perform any resolution but always reports successful resolution. |
限定符和类型 | 方法和说明 |
---|---|
AddressResolver<java.net.InetSocketAddress> |
InetNameResolver.asAddressResolver()
Return a
AddressResolver that will use this name resolver underneath. |
AddressResolver<T> |
AddressResolverGroup.getResolver(EventExecutor executor)
Returns the
AddressResolver associated with the specified EventExecutor . |
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)
Invoked by
AddressResolverGroup.getResolver(EventExecutor) to create a new AddressResolver . |
限定符和类型 | 方法和说明 |
---|---|
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 NameResolver.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 . |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventExecutor executor) |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
|