public static class

DnsOptions.StaleDnsOptions

extends Object
java.lang.Object
   ↳ org.chromium.net.DnsOptions.StaleDnsOptions

Class Overview

A class configuring Cronet's stale DNS functionality.

DNS resolution is one of the steps on the critical path to making a URL request, but it can be slow for various reasons (underlying network latency, buffer bloat, packet loss, etc.).

Depending on the use case, it might be worthwhile for an app developer to trade off guaranteed DNS record freshness for better availability of DNS records.

Stale results can include both:

  • results returned from the current network's DNS server, but past their time-to-live, and
  • results returned from a previous network's DNS server, whether expired or not.

Summary

Nested Classes
class DnsOptions.StaleDnsOptions.Builder Builder for DnsOptions.StaleDnsOptions. 
Public Methods
static DnsOptions.StaleDnsOptions.Builder builder()
Boolean getAllowCrossNetworkUsage()
Long getFreshLookupTimeoutMillis()
Long getMaxExpiredDelayMillis()
Boolean getUseStaleOnNameNotResolved()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Boolean getAllowCrossNetworkUsage ()

Returns
Boolean

public Long getFreshLookupTimeoutMillis ()

Returns
Long

public Long getMaxExpiredDelayMillis ()

Returns
Long

public Boolean getUseStaleOnNameNotResolved ()

Returns
Boolean