The Object Pool Pattern

  • Adam Freeman


The object pool pattern is a variation on the singleton pattern that provides access to multiple identical objects rather than a single instance. This is useful when you have objects that represent a set of fungible resources, each of which can be used by only one component at a time. In this chapter, I describe the basic object pool pattern, and in Chapter 8 I show you some useful variations that allow object pools to adapt to different situations. Table 7-1 puts the object pool pattern in context.


Stock Level Product Object Return Result Free Object Concurrent Request 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Adam Freeman 2015

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.ChicagoUnited States

Personalised recommendations