Class GatewayThrottler

java.lang.Object
com.yahoo.vespa.http.client.core.communication.GatewayThrottler

public class GatewayThrottler extends Object
When the gateways says it can not handle more load, we should send less load. That is the responsibility of this component
Author:
dybis
  • Constructor Details

    • GatewayThrottler

      public GatewayThrottler(long maxSleepTimeMs)
  • Method Details

    • handleCall

      public void handleCall(int transientErrors)
    • sleepMs

      protected void sleepMs(long sleepTime)
    • distribute

      public int distribute(int expected)