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, onSample
public static SettableLimit startingAt(int limit)
protected int _update(long startTime, long rtt, int inflight, boolean didDrop)
_update
in class AbstractLimit
public void setLimit(int limit)
setLimit
in class AbstractLimit
public java.lang.String toString()
toString
in class java.lang.Object