<<< Object Pool Design Pattern     Index     Object Pool Collaboration >>>

2. Object Pool UML Diagram


  • A Reusable Pool class manages a cache of concrete Reusable Objects.

  • A Reusable Object is often referred to as a subject of the pool.

  • Generally the pool will be a growing pool:

    1. Pool can be empty at the beginning, or pre-populated with a number of subjects.

    2. Pool can create new subjects.

    3. Pool may restrict the maximum number of subjects created.

    Reusable Pool Class
  • Reusable Pool class is designed to be
    a Singleton class.


<<< Object Pool Design Pattern     Index     Object Pool Collaboration >>>