Minimizes the number of items in the pool, removing idle items in excess of the specified number. Only idle items will be removed, busy items are not affected. The reset() method (if existing) of any removed items is called before they are deleted.
maximum number of items desired in pool
this
See Implementation
Minimizes the number of items in the pool, removing idle items in excess of the specified number. Only idle items will be removed, busy items are not affected. The reset() method (if existing) of any removed items is called before they are deleted.