Class StoreLoadController

java.lang.Object
com.linkedin.venice.fastclient.meta.StoreLoadController

public class StoreLoadController extends Object
This class is used to control the load on the store, and it will treat every quota rejected request as a signal to reject more requests on the client side to avoid overloading the server.
  • Constructor Details

    • StoreLoadController

      public StoreLoadController(ClientConfig clientConfig)
  • Method Details

    • recordRejectedRequest

      public void recordRejectedRequest()
    • recordResponse

      public void recordResponse(Throwable exception)
    • shouldRejectRequest

      public boolean shouldRejectRequest()
    • getRejectionRatio

      public double getRejectionRatio()