Constructor and Description |
---|
TracingLimitDecorator(Limit delegate) |
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
|
static TracingLimitDecorator |
wrap(Limit delegate) |
public TracingLimitDecorator(Limit delegate)
public static TracingLimitDecorator wrap(Limit delegate)
public int getLimit()
public void onSample(long startTime, long rtt, int inflight, boolean didDrop)
Limit
public void notifyOnChange(java.util.function.Consumer<java.lang.Integer> consumer)
Limit
notifyOnChange
in interface Limit