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: svn commit: r1506488 - in /commons/proper/pool/trunk/src: main/java/org/apache/commons/pool2/ main/java/org/apache/commons/pool2/impl/ test/java/org/apache/commons/pool2/impl/
Date Wed, 24 Jul 2013 17:49:41 GMT
On 7/24/13 3:41 AM, Mark Thomas wrote:
> On 24/07/2013 11:37, markt@apache.org wrote:
>> Author: markt
>> Date: Wed Jul 24 10:37:09 2013
>> New Revision: 1506488
>>
>> URL: http://svn.apache.org/r1506488
>> Log:
>> Make PooledObject an interface so it can be used in the Factory implementations.
> In case anyone is wondering where I am heading with this, this is a step
> towards fixing DBCP-156.
>
> By making the pooled object available to the factory, the factory can
> implement a validation rule along the lines of "no object older than x
> hours". That particular rule could be implemented by the factory keeping
> track of every object and its creation time but since the PooledObject
> already has the information I think it makes sense to re-use it and keep
> all the pooled object state information in one place. It also allows for
> more complex state based validation rules.

Big +1 here.   Thanks!

Phil
>
> Mark
>
> ---------------------------------------------------------------------
> 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