register Capacity Change Queue
Resources can be associated with a capacity change schedule. If a capacity change occurs, especially a decrease that makes the resource inactive or an increase that allows the resource to be available occurs, then queues that hold requests for the resource may want to be notified of the capacity change.
In the case of a capacity increase, the additional units will be automatically allocated to waiting requests when the increase occurs if and only if the queue holding the requests is associated with the resource. The order of queue notification is governed by setting of the proper (requestNotificationRule).
In the case of a capacity decrease that makes the resource inactive, the entities associated with the requests held in the associated queues are notified so that they may take action because the resource is inactive.
This function associates the request queue with the resource so that the notification will occur. For the case of resources that have queue because of defined structure (ResourceWithQ, MovableResourceWithQ, ResourcePoolWithQ, MovableResourcePoolWithQ), the registration of the queue is automatic when the resource is constructed or when added to the pool. If you use a general, not attached queue to hold requests (via the seize() function) then, you should consider using this function to register the queue. A queue may be registered with more than one resource and a resource may have many queues registered.