public interface Limit
Modifier and Type | Method and Description |
---|---|
void |
drop()
The request failed and was dropped due to being rejected by an external limit
or hitting a timeout.
|
int |
getLimit() |
void |
update(long rtt,
int maxInFlight)
Update the concurrency limit using a new rtt sample
|
int getLimit()
void update(long rtt, int maxInFlight)
rtt
- Minimum RTT sample for the last windowmaxInFlight
- Maximum number of inflight requests observed in the sampling windowvoid drop()