AbstractConnPool.GetEntry(HttpRoute, Object, Int64, TimeUnit) Method

Definition

Acquires an entry with a connection for a route within the specified timeout.

[Android.Runtime.Register("getEntry", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Lorg/apache/http/impl/conn/tsccm/BasicPoolEntry;", "")]
public Org.Apache.Http.Impl.Conn.Tsccm.BasicPoolEntry? GetEntry(Org.Apache.Http.Conn.Routing.HttpRoute? route, Java.Lang.Object? state, long timeout, Java.Util.Concurrent.TimeUnit? tunit);
[<Android.Runtime.Register("getEntry", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Lorg/apache/http/impl/conn/tsccm/BasicPoolEntry;", "")>]
member this.GetEntry : Org.Apache.Http.Conn.Routing.HttpRoute * Java.Lang.Object * int64 * Java.Util.Concurrent.TimeUnit -> Org.Apache.Http.Impl.Conn.Tsccm.BasicPoolEntry

Parameters

route
HttpRoute

The route for which to acquire a connection.

state
Object

The requested connection state.

timeout
Int64

The maximum time to wait; zero or a negative value means no timeout.

tunit
TimeUnit

The unit for timeout; required when a timeout is specified.

Returns

A pool entry holding a connection for the requested route.

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