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

[pool] proposed ObjectPools.borrowObject JavaDoc changes for 2.0

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • Operating System: All
      Platform: All

    • 38660

    Description

      Attached are the pool 2.0 changes I'd like to see to the ObjectPool and the
      KeyedObjectPool interfaces for the borrowObject method. The noteworthy changes are:

      Added: "Instances returned from this method will have been either newly created
      with PoolableObjectFactory.makeObject or will be a previously idle object and
      have been activated with PoolableObjectFactory.activateObject and then validated
      with PoolableObjectFactory.validateObject."

      Added: That borrowed objects can be returned to the invalidateObject method too.

      Added: That client code should expect a NoSuchElementException for when the pool
      has been exhaused and older versions of pool have been know to return null.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--ObjectPools-borrowObject-javadoc.patch
          5 kB
          Sandy McArthur (from Bugzilla import)

        Activity

          People

            Unassigned Unassigned
            sandymac@apache.org Sandy McArthur (from Bugzilla import)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: