private static class RateLimitingSearcher.CapacityAllocation extends Object
Modifier and Type | Field and Description |
---|---|
private double |
capacity |
private Clock |
clock |
private long |
lastAllocatedTime |
Constructor and Description |
---|
CapacityAllocation(double initialCapacity,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
double |
request(double minimumRequested,
double preferredRequested,
double rate,
double maxAvailableCapacity) |
Copyright © 2018. All rights reserved.