public abstract class PriorityIterableBasedRequestAllocator<T extends Request<T>> extends Object implements RequestAllocator<T>
RequestAllocator.Factory| Constructor and Description |
|---|
PriorityIterableBasedRequestAllocator(org.slf4j.Logger log,
RequestAllocatorConfig<T> configuration) |
| 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) |
void |
getRejectedAndDroppedRequests(ConcurrentBoundedPriorityIterable<T> iterable) |
public PriorityIterableBasedRequestAllocator(org.slf4j.Logger log,
RequestAllocatorConfig<T> configuration)
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>>public void getRejectedAndDroppedRequests(ConcurrentBoundedPriorityIterable<T> iterable)