public interface Limit
Modifier and Type | Method and Description |
---|---|
int |
getLimit() |
void |
notifyOnChange(java.util.function.Consumer<java.lang.Integer> consumer)
Register a callback to receive notification whenever the limit is updated to a new value
|
void |
onSample(long startTime,
long rtt,
int inflight,
boolean didDrop)
Update the limiter with a sample
|
int getLimit()
void notifyOnChange(java.util.function.Consumer<java.lang.Integer> consumer)
consumer
- void onSample(long startTime, long rtt, int inflight, boolean didDrop)
startTime
- rtt
- inflight
- didDrop
-