Parameterize the maxWait time to be per borrow call
---------------------------------------------------

                 Key: POOL-134
                 URL: https://issues.apache.org/jira/browse/POOL-134
             Project: Commons Pool
          Issue Type: Improvement
    Affects Versions: 1.4
         Environment: JRE 1.4.x
            Reporter: David Meibusch
            Priority: Minor


Use case: 
The pool is being used to pool connections in a mid-tier system to a backend 
system.
Client requests to the system have a configured timeout specified as an elapsed 
time with respect to the client application. 
Requests may spend some elapsed time in internal work queues and/or may borrow 
connections multiple times to service the single request.
When calling the borrowObject method the mid tier system requires the wait time 
to be only a portion of request time remaining.

The maxWait time for the GenericObjectPool is currently a global value for all 
borrowObject operations.
The current implementation requires only minor changes to support a per 
borrowObject maxTime.


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

Reply via email to