private AuthoritativeDnsServerCache newAuthoritativeDnsServerCache() { return new DefaultAuthoritativeDnsServerCache( intValue(minTtl, 0), intValue(maxTtl, Integer.MAX_VALUE), // Let us use the sane ordering as DnsNameResolver will be used when returning // nameservers from the cache. new NameServerComparator(DnsNameResolver.preferredAddressType(resolvedAddressTypes).addressType())); }
private AuthoritativeDnsServerCache newAuthoritativeDnsServerCache() { return new DefaultAuthoritativeDnsServerCache( intValue(minTtl, 0), intValue(maxTtl, Integer.MAX_VALUE), // Let us use the sane ordering as DnsNameResolver will be used when returning // nameservers from the cache. new NameServerComparator(DnsNameResolver.preferredAddressType(resolvedAddressTypes).addressType())); }
int minTtl = intValue(options.getCacheMinTimeToLive(), 0); int maxTtl = intValue(options.getCacheMaxTimeToLive(), Integer.MAX_VALUE); int negativeTtl = intValue(options.getCacheNegativeTimeToLive(), 0); DnsCache resolveCache = new DefaultDnsCache(minTtl, maxTtl, negativeTtl); DnsCache authoritativeDnsServerCache = new DefaultDnsCache(minTtl, maxTtl, negativeTtl);
int minTtl = intValue(options.getCacheMinTimeToLive(), 0); int maxTtl = intValue(options.getCacheMaxTimeToLive(), Integer.MAX_VALUE); int negativeTtl = intValue(options.getCacheNegativeTimeToLive(), 0); DnsCache resolveCache = new DefaultDnsCache(minTtl, maxTtl, negativeTtl); DnsCache authoritativeDnsServerCache = new DefaultDnsCache(minTtl, maxTtl, negativeTtl);
private AuthoritativeDnsServerCache newAuthoritativeDnsServerCache() { return new DefaultAuthoritativeDnsServerCache( intValue(minTtl, 0), intValue(maxTtl, Integer.MAX_VALUE), // Let us use the sane ordering as DnsNameResolver will be used when returning // nameservers from the cache. new NameServerComparator(DnsNameResolver.preferredAddressType(resolvedAddressTypes).addressType())); }