Package ai.vespa.feed.client.impl
Class StaticThrottler
java.lang.Object
ai.vespa.feed.client.impl.StaticThrottler
- Direct Known Subclasses:
DynamicThrottler
Reduces max throughput whenever throttled; increases it slowly whenever successful responses are obtained.
- Author:
- jonmv
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sent
(long inflight, CompletableFuture<ai.vespa.feed.client.HttpResponse> vessel) void
success()
long
void
throttled
(long inflight)
-
Field Details
-
maxInflight
protected final long maxInflight -
minInflight
protected final long minInflight
-
-
Constructor Details
-
StaticThrottler
-
-
Method Details
-
sent
-
success
public void success() -
throttled
public void throttled(long inflight) -
targetInflight
public long targetInflight()
-