Skip to content

Commit

Permalink
mobile: Add a Cronvoy API to set the minimum DNS refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Beyad <abeyad@google.com>
  • Loading branch information
abeyad committed Apr 25, 2024
1 parent 835ed26 commit a5dab48
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ public NativeCronvoyEngineBuilderImpl setDnsQueryTimeoutSeconds(int timeout) {
return this;
}

/**
* Set the DNS minimum refresh time, in seconds, which ensures that we wait to refresh a DNS
* entry for at least the minimum refresh time. For example, if the DNS record TTL is 60 seconds
* and setMinDnsRefreshSeconds(120) is invoked, then at least 120 seconds will transpire before
* the DNS entry for a host is refreshed.
*
* The default is 60s.
*
* @param minRefreshSeconds The DNS minimum refresh time, in seconds.
*/
public NativeCronvoyEngineBuilderImpl setMinDnsRefreshSeconds(int minRefreshSeconds) {
mDnsMinRefreshSeconds = minRefreshSeconds;
return this;
}

/**
* Sets the boolean value for the reloadable runtime feature flag value. For example, to set the
* Envoy runtime flag `envoy.reloadable_features.http_allow_partial_urls_in_referer` to true,
Expand Down

0 comments on commit a5dab48

Please sign in to comment.