DnsOptions.StaleDnsOptions.Builder.SetMaxExpiredDelay(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) past expiration to consider using expired results.
[Android.Runtime.Register("setMaxExpiredDelay", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$StaleDnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.StaleDnsOptions.Builder SetMaxExpiredDelay(Java.Time.Duration maxExpiredDelay);
[<Android.Runtime.Register("setMaxExpiredDelay", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$StaleDnsOptions$Builder;", "", ApiSince=34)>]
member this.SetMaxExpiredDelay : Java.Time.Duration -> Android.Net.Http.DnsOptions.StaleDnsOptions.Builder
Parameters
- maxExpiredDelay
- Duration
Returns
the builder for chaining. This value cannot be null.
- Attributes
Remarks
Sets how long (in milliseconds) past expiration to consider using expired results. Setting the value to zero means expired records can be used indefinitely.
Android reference for android.net.http.DnsOptions.StaleDnsOptions.Builder.setMaxExpiredDelay.
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.