Package ai.vespa.feed.client.impl
Class DynamicThrottler
java.lang.Object
ai.vespa.feed.client.impl.StaticThrottler
ai.vespa.feed.client.impl.DynamicThrottler
Samples latency as a function of inflight requests, and regularly adjusts to the optimal value.
- Author:
- jonmv
-
Field Summary
Fields inherited from class ai.vespa.feed.client.impl.StaticThrottler
maxInflight, minInflight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsent(long __, CompletableFuture<ai.vespa.feed.client.HttpResponse> ___) voidsuccess()longMethods inherited from class ai.vespa.feed.client.impl.StaticThrottler
throttled
-
Constructor Details
-
DynamicThrottler
-
-
Method Details
-
sent
- Overrides:
sentin classStaticThrottler
-
success
public void success()- Overrides:
successin classStaticThrottler
-
targetInflight
public long targetInflight()- Overrides:
targetInflightin classStaticThrottler
-