public class SettableLimit extends AbstractLimit
Limit to be used mostly for testing where the limit can be manually
adjusted.| Constructor and Description |
|---|
SettableLimit(int limit) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
_update(long startTime,
long rtt,
int inflight,
boolean didDrop) |
void |
setLimit(int limit) |
static SettableLimit |
startingAt(int limit) |
java.lang.String |
toString() |
getLimit, notifyOnChange, onSamplepublic static SettableLimit startingAt(int limit)
protected int _update(long startTime,
long rtt,
int inflight,
boolean didDrop)
_update in class AbstractLimitpublic void setLimit(int limit)
setLimit in class AbstractLimitpublic java.lang.String toString()
toString in class java.lang.Object