Class StaticThrottler

java.lang.Object
ai.vespa.feed.client.impl.StaticThrottler
Direct Known Subclasses:
DynamicThrottler

public class StaticThrottler extends Object
Reduces max throughput whenever throttled; increases it slowly whenever successful responses are obtained.
Author:
jonmv
  • Field Details

    • maxInflight

      protected final long maxInflight
    • minInflight

      protected final long minInflight
  • Constructor Details

  • Method Details

    • sent

      public void sent(long inflight, CompletableFuture<ai.vespa.feed.client.HttpResponse> vessel)
    • success

      public void success()
    • throttled

      public void throttled(long inflight)
    • targetInflight

      public long targetInflight()