程序包 | 说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(AuthoritativeDnsServerCache authoritativeDnsServerCache)
Sets the cache for authoritative NS servers
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache authoritativeDnsServerCache)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelFactory(ChannelFactory<? extends DatagramChannel> channelFactory)
Sets the
ChannelFactory that will create a DatagramChannel . |
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelType(java.lang.Class<? extends DatagramChannel> channelType)
Sets the
ChannelFactory as a ReflectiveChannelFactory of this type. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.cnameCache(DnsCnameCache cnameCache)
Sets the cache for
CNAME mappings. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.completeOncePreferredResolved(boolean completeOncePreferredResolved)
If
true SimpleNameResolver.resolveAll(String) will notify the returned Future as
soon as all queries for the preferred address-type are complete. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.consolidateCacheSize(int maxNumConsolidation)
Set the maximum size of the cache that is used to consolidate lookups for different hostnames when in-flight.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.copy()
Creates a copy of this
DnsNameResolverBuilder |
DnsNameResolverBuilder |
DnsNameResolverBuilder.decodeIdn(boolean decodeIdn)
Set if domain / host names should be decoded to unicode when received.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.dnsQueryLifecycleObserverFactory(DnsQueryLifecycleObserverFactory lifecycleObserverFactory)
Set the factory used to generate objects which can observe individual DNS queries.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.eventLoop(EventLoop eventLoop)
Sets the
EventLoop which will perform the communication with the DNS servers. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.hostsFileEntriesResolver(HostsFileEntriesResolver hostsFileEntriesResolver) |
DnsNameResolverBuilder |
DnsNameResolverBuilder.localAddress(java.net.SocketAddress localAddress)
Configure the address that will be used to bind too.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxPayloadSize(int maxPayloadSize)
Sets the capacity of the datagram packet buffer (in bytes).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.maxQueriesPerResolve(int maxQueriesPerResolve)
Sets the maximum allowed number of DNS queries to send when resolving a host name.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.nameServerProvider(DnsServerAddressStreamProvider dnsServerAddressStreamProvider)
Set the
DnsServerAddressStreamProvider which is used to determine which DNS server is used to resolve
each hostname. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.ndots(int ndots)
Set the number of dots which must appear in a name before an initial absolute query is made.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.negativeTtl(int negativeTtl)
Sets the TTL of the cache for the failed DNS queries (in seconds).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.optResourceEnabled(boolean optResourceEnabled)
Enable the automatic inclusion of a optional records that tries to give the remote DNS server a hint about
how much data the resolver can read per response.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.queryServerAddressStream(DnsServerAddressStream queryServerAddressStream)
Set the
DnsServerAddressStream which provides the server address for DNS queries. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.queryTimeoutMillis(long queryTimeoutMillis)
Sets the timeout of each DNS query performed by this resolver (in milliseconds).
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.recursionDesired(boolean recursionDesired)
Sets if this resolver has to send a DNS query with the RD (recursion desired) flag set.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolveCache(DnsCache resolveCache)
Sets the cache for resolution results.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(ResolvedAddressTypes resolvedAddressTypes)
Sets the list of the protocol families of the address resolved.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.searchDomains(java.lang.Iterable<java.lang.String> searchDomains)
Set the list of search domains of the resolver.
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelFactory(ChannelFactory<? extends SocketChannel> channelFactory)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelFactory(ChannelFactory<? extends SocketChannel> channelFactory,
boolean retryOnTimeout)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelType(java.lang.Class<? extends SocketChannel> channelType)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.socketChannelType(java.lang.Class<? extends SocketChannel> channelType,
boolean retryOnTimeout)
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.traceEnabled(boolean traceEnabled)
已过时。
Prefer to configure
a
LoggingDnsQueryLifeCycleObserverFactory instead. |
DnsNameResolverBuilder |
DnsNameResolverBuilder.ttl(int minTtl,
int maxTtl)
Sets the minimum and maximum TTL of the cached DNS resource records (in seconds).
|
构造器和说明 |
---|
DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
RoundRobinDnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |