Język

SingleClientConnManager.CloseIdleConnections(Int64, TimeUnit) Method

Definition

Closes the open connection if it is not allocated and was last released at least the specified time ago. Allocated connections are not closed by this method.

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

Parameters

idletime
Int64

The minimum elapsed idle time since release. Zero or a negative value is accepted.

tunit
TimeUnit

The non-null unit of idletime.

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