On Mon, 2010-07-19 at 14:27 -0400, Brooks, Kenneth S wrote:
> Both of these are now deprecated in 4.1 with a message of Do Not Use.
> 
>         ConnManagerParams.setMaxTotalConnections(...);
>         ConnManagerParams.setMaxConnectionsPerRoute(...);
> 
> Is there a suggested alternative?
> I was under the assumption that this would set the number of connections in a 
> pool.. Maybe that was a bad assumption.. what exactly is that driving and is 
> there and alternative?
> 

Take a look at 

ThreadSafeClientConnManager#setMaxTotalConnections and
ThreadSafeClientConnManager#setMaxsPerRoute 

There has been a number of complaints about misuse of HttpParams for
things that do not need parameter hierarchies. This is the reason why
HttpParams based connection pool configuration have been deprecated in
favor of simple setters and getters on the ThreadSafeClientConnManager
class.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to