Class GatewayThrottler
java.lang.Object
com.yahoo.vespa.http.client.core.communication.GatewayThrottler
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
distribute
(int expected) void
handleCall
(int transientErrors) protected void
sleepMs
(long sleepTime)
-
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)
-