SingleClientConnManager.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 and detaches the adapter, records release and expiry times, and shuts down an open connection if it is not marked reusable or shutdown on release is enabled. Releasing an already detached adapter has no further effect.
[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 adapter obtained from this manager.
- validDuration
- Int64
The validity period after release. Zero or a negative value means no expiry limit.
- timeUnit
- TimeUnit
The unit of validDuration, used when that 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.