Chapter    8

Object Pool Variations

In this chapter, I explain how you can vary the basic implementation of the object pool pattern I described in Chapter 7 to manage objects with different characteristics. Each technique applies a strategy to handling an aspect of the pool’s implementation to deal with calling components that require pool objects. Table 8-1 puts the variations into context.

Table 8-1. Putting the Object Pool Pattern Variations into Context

Question

Answer

What are they?

The variations on the object pool pattern allow you to change the way that the object pool works to operate in different situations.

What are the benefits?

These variations change the behavior of the pool so that it can service calling components with different expectations ...

Get Pro Design Patterns in Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.