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

[pool] proposed ObjectPools.getNum{Active,Idle} JavaDoc changes for 2.0

    XMLWordPrintableJSON

Details

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

    • 38666

    Description

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

      • those methods are declared to return a negative value to indicate they do not
        support the requested operation. Currently they throw an
        UnsupportedOperationException. The throwing of UOE is documented at deprecated
        and I hope to remove that in Pool 3.0. Since UOE is a RuntimeException removing
        it will not cause any API compatibility problems.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--ObjectPools-getNumXXX-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: