Package | Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
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. |
Constructor and Description |
---|
CompositeNameResolver(EventExecutor executor,
NameResolver<T>... resolvers) |
InetSocketAddressResolver(EventExecutor executor,
NameResolver<InetAddress> nameResolver) |
RoundRobinInetAddressResolver(EventExecutor executor,
NameResolver<InetAddress> nameResolver) |
Modifier and Type | Class and Description |
---|---|
class |
DnsNameResolver
A DNS-based
InetNameResolver . |
Modifier and Type | Method and Description |
---|---|
protected NameResolver<InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
Modifier and Type | Method and Description |
---|---|
protected AddressResolver<InetSocketAddress> |
DnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<InetAddress> resolver)
Creates a new
AddressResolver . |
protected AddressResolver<InetSocketAddress> |
RoundRobinDnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<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) . |
Copyright © 2008–2024 The Netty Project. All rights reserved.