Language

ConnPoolByRoute.FreeEntry(BasicPoolEntry, Boolean, Int64, TimeUnit) Method

Definition

Releases an entry, returning it to the free pool if reusable or dropping it otherwise. If the pool is shut down, closes the connection instead.

[Android.Runtime.Register("freeEntry", "(Lorg/apache/http/impl/conn/tsccm/BasicPoolEntry;ZJLjava/util/concurrent/TimeUnit;)V", "GetFreeEntry_Lorg_apache_http_impl_conn_tsccm_BasicPoolEntry_ZJLjava_util_concurrent_TimeUnit_Handler")]
public override void FreeEntry(Org.Apache.Http.Impl.Conn.Tsccm.BasicPoolEntry? entry, bool reusable, long validDuration, Java.Util.Concurrent.TimeUnit? timeUnit);
[<Android.Runtime.Register("freeEntry", "(Lorg/apache/http/impl/conn/tsccm/BasicPoolEntry;ZJLjava/util/concurrent/TimeUnit;)V", "GetFreeEntry_Lorg_apache_http_impl_conn_tsccm_BasicPoolEntry_ZJLjava_util_concurrent_TimeUnit_Handler")>]
override this.FreeEntry : Org.Apache.Http.Impl.Conn.Tsccm.BasicPoolEntry * bool * int64 * Java.Util.Concurrent.TimeUnit -> unit

Parameters

entry
BasicPoolEntry

The entry to return to this pool.

reusable
Boolean

true if the connection can be reused; otherwise, false.

validDuration
Int64

The duration that a reusable entry remains valid while free.

timeUnit
TimeUnit

The unit for validDuration.

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