A class for managing a finite pool of resources.