IdleConnectionHandler.Add(IHttpConnection, Int64, TimeUnit) 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.
Registers a connection with the current time as its idle start and computes its expiry time.
[Android.Runtime.Register("add", "(Lorg/apache/http/HttpConnection;JLjava/util/concurrent/TimeUnit;)V", "GetAdd_Lorg_apache_http_HttpConnection_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual void Add(Org.Apache.Http.IHttpConnection? connection, long validDuration, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("add", "(Lorg/apache/http/HttpConnection;JLjava/util/concurrent/TimeUnit;)V", "GetAdd_Lorg_apache_http_HttpConnection_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member Add : Org.Apache.Http.IHttpConnection * int64 * Java.Util.Concurrent.TimeUnit -> unit
override this.Add : Org.Apache.Http.IHttpConnection * int64 * Java.Util.Concurrent.TimeUnit -> unit
Parameters
- connection
- IHttpConnection
The connection to register.
- validDuration
- Int64
The validity duration from registration. Zero or a negative value means no expiry limit.
- unit
- TimeUnit
The unit of validDuration, used when the duration is positive.
- 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.