Package ai.vespa.feed.client
Class StaticThrottler
- java.lang.Object
-
- ai.vespa.feed.client.StaticThrottler
-
- Direct Known Subclasses:
DynamicThrottler
public class StaticThrottler extends java.lang.Object
Reduces max throughput whenever throttled; increases it slowly whenever successful responses are obtained.- Author:
- jonmv
-
-
Field Summary
Fields Modifier and Type Field Description protected long
maxInflight
protected long
minInflight
-
Constructor Summary
Constructors Constructor Description StaticThrottler(FeedClientBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sent(long inflight, java.util.concurrent.CompletableFuture<ai.vespa.feed.client.HttpResponse> vessel)
void
success()
long
targetInflight()
void
throttled(long inflight)
-
-
-
Constructor Detail
-
StaticThrottler
public StaticThrottler(FeedClientBuilder builder)
-
-