Sdílet prostřednictvím


IManagedClientConnection.SetIdleDuration(Int64, TimeUnit) Method

Definition

Sets the duration that this connection can remain idle before it is reused.

[Android.Runtime.Register("setIdleDuration", "(JLjava/util/concurrent/TimeUnit;)V", "GetSetIdleDuration_JLjava_util_concurrent_TimeUnit_Handler:Org.Apache.Http.Conn.IManagedClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetIdleDuration (long duration, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("setIdleDuration", "(JLjava/util/concurrent/TimeUnit;)V", "GetSetIdleDuration_JLjava_util_concurrent_TimeUnit_Handler:Org.Apache.Http.Conn.IManagedClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetIdleDuration : int64 * Java.Util.Concurrent.TimeUnit -> unit

Parameters

duration
Int64
unit
TimeUnit
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