SstPool
Pools are a resource-management aid. A pool is configured with high and low watermarks and creation and destruction blocks. Objects ask a pool for one of its managed resources, and return the resource when finished. The pool creates and destroys resources as required. If set to strict the pool will strictly adhere to its configured watermarks, causing the request for the next available resource to return nil. Otherwise the pool allocates new resources as necessary, discarding surplus resources when returned. The creation block takes no arguments and should answer a resource; the destruction block takes a resource as an argument and should dispose of it.
SstPool conforms to the IuSstStartable interface and thus you must explicitly start and stop it. Its operations are the following:
next
Answers a resource. If no resources are available and the pool is strict, then answers nil.
return:
Returns a resource to the pool.
size
Answers the number of known resources.
Last modified date: 01/29/2015