Package org.apache.http.pool
Interface ConnPoolControl<T>
- Type Parameters:
T
- the route type that represents the opposite endpoint of a pooled connection.
- All Known Implementing Classes:
AbstractConnPool
,AbstractNIOConnPool
,BasicConnPool
,BasicNIOConnPool
public interface ConnPoolControl<T>
Interface to control runtime properties of a
ConnPool
such as
maximum total number of connections or maximum connections per route
allowed.- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getMaxPerRoute
(T route) int
void
setDefaultMaxPerRoute
(int max) void
setMaxPerRoute
(T route, int max) void
setMaxTotal
(int max)
-
Method Details
-
setMaxTotal
void setMaxTotal(int max) -
getMaxTotal
int getMaxTotal() -
setDefaultMaxPerRoute
void setDefaultMaxPerRoute(int max) -
getDefaultMaxPerRoute
int getDefaultMaxPerRoute() -
setMaxPerRoute
-
getMaxPerRoute
-
getTotalStats
PoolStats getTotalStats() -
getStats
-