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,PoolingClientConnectionManager,PoolingHttpClientConnectionManager
public interface ConnPoolControl<T>Interface to control runtime properties of aConnPoolsuch as maximum total number of connections or maximum connections per route allowed.- Since:
 - 4.2
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDefaultMaxPerRoute()intgetMaxPerRoute(T route)intgetMaxTotal()PoolStatsgetStats(T route)PoolStatsgetTotalStats()voidsetDefaultMaxPerRoute(int max)voidsetMaxPerRoute(T route, int max)voidsetMaxTotal(int max) 
 - 
 
- 
- 
Method Detail
- 
setMaxTotal
void setMaxTotal(int max)
 
- 
getMaxTotal
int getMaxTotal()
 
- 
setDefaultMaxPerRoute
void setDefaultMaxPerRoute(int max)
 
- 
getDefaultMaxPerRoute
int getDefaultMaxPerRoute()
 
- 
setMaxPerRoute
void setMaxPerRoute(T route, int max)
 
- 
getMaxPerRoute
int getMaxPerRoute(T route)
 
- 
getTotalStats
PoolStats getTotalStats()
 
 - 
 
 -