commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
Subject Re: [pool] introducing Enumerations
Date Sun, 17 Oct 2010 17:20:53 GMT
On 10/17/10 12:38 PM, James Carman wrote:
> On Sun, Oct 17, 2010 at 12:38 PM, James Carman
> <james@carmanconsulting.com>  wrote:
>>  From the Javadocs for GenericObjectPool:
>>
>> "when the pool is exhausted (i.e., the maximum number of active
>> objects has been reached), the borrowObject()  method should simply
>> create a new object anyway. "
>>
>> So, it's a different case.  It allows for you to disregard the maximum size.
>>
>
> Sorry, this is the description of the WHEN_EXHAUSTED_GROW option.

Yes, but the question is do you really *need* this option, since 
setting maxActive = -1 effectively accomplishes the same thing.

Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message