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

GenericKeyedObjectPoolFactory could be made immutable and thread-safe

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: