public abstract class PriorityIterableBasedRequestAllocator<T extends Request<T>> extends Object implements RequestAllocator<T>
RequestAllocator.Factory| Constructor and Description |
|---|
PriorityIterableBasedRequestAllocator() |
| 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. |
protected abstract Iterator<T> |
getJoinIterator(Iterator<? extends Requestor<T>> requestors,
ConcurrentBoundedPriorityIterable<T> requestIterable) |
public PriorityIterableBasedRequestAllocator()
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>>