You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rob Eamon (JIRA)" <ji...@apache.org> on 2007/04/04 20:49:32 UTC

[jira] Created: (POOL-99) Test for idle time exceeded in borrowObject

Test  for idle time exceeded in borrowObject
--------------------------------------------

                 Key: POOL-99
                 URL: https://issues.apache.org/jira/browse/POOL-99
             Project: Commons Pool
          Issue Type: Improvement
    Affects Versions: 1.3
            Reporter: Rob Eamon
            Priority: Minor


For GenericObjectPool, the evictor thread performs a calculation to determine if an idle object as "expired." If it has, the object is destroyed.

Would like borrowObject to perform the same test and destroy behavior.

I explored using the testOnBorrow facility but the time that the object went idle is not available. Only the pool has access to the ObjectTimestampPair object that is used to record the time that the object was placed in the pool. I explored placing a timestamp in the pooled object and can do that but it would seem better if the pool managed that test itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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