Class 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 Detail

      • maxInflight

        protected final long maxInflight
      • minInflight

        protected final long minInflight
    • Method Detail

      • 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()