Interface RouterThrottler
-
- All Known Implementing Classes:
ReadRequestThrottler
public interface RouterThrottler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getReadCapacity()
void
mayThrottleRead(java.lang.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 Detail
-
mayThrottleRead
void mayThrottleRead(java.lang.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)
-
-