ThreadSafeClientConnManager.ReleaseConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Releases a managed connection to the pool.
[Android.Runtime.Register("releaseConnection", "(Lorg/apache/http/conn/ManagedClientConnection;JLjava/util/concurrent/TimeUnit;)V", "GetReleaseConnection_Lorg_apache_http_conn_ManagedClientConnection_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual void ReleaseConnection(Org.Apache.Http.Conn.IManagedClientConnection? conn, long validDuration, Java.Util.Concurrent.TimeUnit? timeUnit);
[<Android.Runtime.Register("releaseConnection", "(Lorg/apache/http/conn/ManagedClientConnection;JLjava/util/concurrent/TimeUnit;)V", "GetReleaseConnection_Lorg_apache_http_conn_ManagedClientConnection_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member ReleaseConnection : Org.Apache.Http.Conn.IManagedClientConnection * int64 * Java.Util.Concurrent.TimeUnit -> unit
override this.ReleaseConnection : Org.Apache.Http.Conn.IManagedClientConnection * int64 * Java.Util.Concurrent.TimeUnit -> unit
Parameters
The managed connection to release.
- validDuration
- Int64
The period a reusable connection remains valid after release.
- timeUnit
- TimeUnit
The unit for validDuration.
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.