Interface RouterThrottler
- All Known Implementing Classes:
ReadRequestThrottler
public interface RouterThrottler
-
Method Summary
Modifier and TypeMethodDescriptionint
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
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)
-