nextRequestForResource

Returns the next request that can be fully satisfied by the resource. If no requests can be satisfied, then null is returned. The selection is based on the queue discipline, or, when the queue has a request selection rule, on the rule, as when units are freed.

Return

the selected request or null

Parameters

resource

the resource to check