Interface RouterThrottler

All Known Implementing Classes:
ReadRequestThrottler

public interface RouterThrottler
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    mayThrottleRead(String storeName, double readCapacityUnit)
    Returns if the request should be allowed, throws a com.linkedin.venice.exceptions.QuotaExceededException if the request is out of quota.
    void
    setIsNoopThrottlerEnabled(boolean isNoopThrottlerEnabled)
     
  • Method Details

    • mayThrottleRead

      void mayThrottleRead(String storeName, double readCapacityUnit) throws QuotaExceededException
      Returns if the request should be allowed, throws a com.linkedin.venice.exceptions.QuotaExceededException if the request is out of quota.
      Parameters:
      storeName -
      readCapacityUnit -
      Throws:
      QuotaExceededException
    • getReadCapacity

      int getReadCapacity()
    • setIsNoopThrottlerEnabled

      void setIsNoopThrottlerEnabled(boolean isNoopThrottlerEnabled)