Dil

DnsOptions.Builder.SetPersistHostCachePeriod(Duration) Method

Definition

Sets the minimum period between subsequent writes to disk for DNS cache persistence.

[Android.Runtime.Register("setPersistHostCachePeriod", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.DnsOptions.Builder SetPersistHostCachePeriod(Java.Time.Duration persistHostCachePeriod);
[<Android.Runtime.Register("setPersistHostCachePeriod", "(Ljava/time/Duration;)Landroid/net/http/DnsOptions$Builder;", "", ApiSince=34)>]
member this.SetPersistHostCachePeriod : Java.Time.Duration -> Android.Net.Http.DnsOptions.Builder

Parameters

persistHostCachePeriod
Duration

Returns

the builder for chaining. This value cannot be null.

Attributes

Remarks

Sets the minimum period between subsequent writes to disk for DNS cache persistence.

Only relevant if setPersistHostCache(int) is set to DnsOptions.DNS_OPTION_ENABLED.

Android reference for android.net.http.DnsOptions.Builder.setPersistHostCachePeriod.

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.

Applies to