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

GenericKeyedObjectPoolFactory could be made immutable and thread-safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.4
    • 2.0
    • None

    Description

      GenericKeyedObjectPoolFactory could be made immutable and thread-safe by making all the protected fields final.

      This would preclude creating a factory and then changing one of the parameters, though as the fields are protected only subclasses can do this.

      As the class stands, it is not intrinsically thread-safe.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: