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

Allow user provided efficient statistics implementations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3
    • 3.0

    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

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

              Dates

                Created:
                Updated: