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

Allow user provided efficient statistics implementations

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: 3.0
    • Labels:

      Description

      As discussed in POOL-277 there is some possibility to clean up the current StatsStore in impl/BaseGenericObjectPool. This would not only allow to get rid of the synchronized implementation and strange mean calculation, but also allow a user to register a faster or more complete statistics caluculation.

      For this I would suggest to make a Statisctics interface public and allow the user to register implementations of this interface for the various tracked metrics.

      This new interface should cover count, max, and mean. But the user can also directly use the object to ask it for percentile or other information.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                b.eckenfels Bernd Eckenfels
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: