Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-134

Parameterize the maxWait time to be per borrow call

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 2.0
    • None
    • JRE 1.4.x

    Description

      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.

      Attachments

        Activity

          People

            markt Mark Thomas
            sprynter David Meibusch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: