Language

ConnPoolByRoute.GetRoutePool(HttpRoute, Boolean) Method

Definition

Finds the pool for a route and optionally creates it.

[Android.Runtime.Register("getRoutePool", "(Lorg/apache/http/conn/routing/HttpRoute;Z)Lorg/apache/http/impl/conn/tsccm/RouteSpecificPool;", "GetGetRoutePool_Lorg_apache_http_conn_routing_HttpRoute_ZHandler")]
protected virtual Org.Apache.Http.Impl.Conn.Tsccm.RouteSpecificPool? GetRoutePool(Org.Apache.Http.Conn.Routing.HttpRoute? route, bool create);
[<Android.Runtime.Register("getRoutePool", "(Lorg/apache/http/conn/routing/HttpRoute;Z)Lorg/apache/http/impl/conn/tsccm/RouteSpecificPool;", "GetGetRoutePool_Lorg_apache_http_conn_routing_HttpRoute_ZHandler")>]
abstract member GetRoutePool : Org.Apache.Http.Conn.Routing.HttpRoute * bool -> Org.Apache.Http.Impl.Conn.Tsccm.RouteSpecificPool
override this.GetRoutePool : Org.Apache.Http.Conn.Routing.HttpRoute * bool -> Org.Apache.Http.Impl.Conn.Tsccm.RouteSpecificPool

Parameters

route
HttpRoute

The HTTP route used to look up the pool.

create
Boolean

true to create a pool when the route has none; otherwise, false.

Returns

The route's pool, or null when none exists and creation was not requested.

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