public class HierarchicalAllocator<T extends Request<T>> extends Object implements RequestAllocator<T>
RequestAllocator optimized for HierarchicalPrioritizers. Processes Requestors in order of
priority. Once the ResourcePool is full, lower priority Requestors will not even be materialized.| Modifier and Type | Class and Description |
|---|---|
static class |
HierarchicalAllocator.Factory |
| Constructor and Description |
|---|
HierarchicalAllocator() |
| Modifier and Type | Method and Description |
|---|---|
AllocatedRequestsIterator<T> |
allocateRequests(Iterator<? extends Requestor<T>> requestors,
ResourcePool resourcePool)
Compute the subset of accepted
Requests from the input Requestors which fit withing
the ResourcePool. |
public AllocatedRequestsIterator<T> allocateRequests(Iterator<? extends Requestor<T>> requestors, ResourcePool resourcePool)
RequestAllocatorRequests from the input Requestors which fit withing
the ResourcePool.allocateRequests in interface RequestAllocator<T extends Request<T>>