Interface RouterThrottler
- All Known Implementing Classes:
ReadRequestThrottler
public interface RouterThrottler
-
Method Summary
Modifier and TypeMethodDescriptionintvoidmayThrottleRead(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.voidsetIsNoopThrottlerEnabled(boolean isNoopThrottlerEnabled)
-
Method Details
-
mayThrottleRead
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)
-