Język

AbstractClientConnAdapter.SetIdleDuration(Int64, TimeUnit) Method

Definition

Sets the idle duration passed to the manager on release, converting positive durations to milliseconds. Reset this duration after each request.

[Android.Runtime.Register("setIdleDuration", "(JLjava/util/concurrent/TimeUnit;)V", "GetSetIdleDuration_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual void SetIdleDuration(long duration, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("setIdleDuration", "(JLjava/util/concurrent/TimeUnit;)V", "GetSetIdleDuration_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member SetIdleDuration : int64 * Java.Util.Concurrent.TimeUnit -> unit
override this.SetIdleDuration : int64 * Java.Util.Concurrent.TimeUnit -> unit

Parameters

duration
Int64

The permitted idle duration after release. Zero or a negative value means no expiry limit.

unit
TimeUnit

The unit of duration, used when the duration is positive.

Implements

Attributes

Remarks

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