DnsOptions.StaleDnsOptions.Builder.SetFreshLookupTimeout(Duration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets how long (in milliseconds) to wait for a DNS request to return before using a stale result instead.
[Android.Runtime.Register("setFreshLookupTimeout", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$StaleDnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.StaleDnsOptions.Builder SetFreshLookupTimeout(Java.Time.Duration freshLookupTimeout);
[<Android.Runtime.Register("setFreshLookupTimeout", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$StaleDnsOptions$Builder;", "", ApiSince=34)>]
member this.SetFreshLookupTimeout : Java.Time.Duration -> Android.Net.Http.DnsOptions.StaleDnsOptions.Builder
Parameters
- freshLookupTimeout
- Duration
Returns
the builder for chaining. This value cannot be null.
- Attributes
Remarks
Sets how long (in milliseconds) to wait for a DNS request to return before using a stale result instead. If set to zero, returns stale results instantly but continues the DNS request in the background to update the cache.
Android reference for android.net.http.DnsOptions.StaleDnsOptions.Builder.setFreshLookupTimeout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.