Package com.github.ambry.frontend
Class QuotaManager
- java.lang.Object
-
- com.github.ambry.frontend.QuotaManager
-
public class QuotaManager extends java.lang.Object
A class to manage requests based on request context.
-
-
Constructor Summary
Constructors Constructor Description QuotaManager(com.github.ambry.config.FrontendConfig frontendConfig)
QuotaManager(java.util.Map<com.github.ambry.rest.RestMethod,com.github.ambry.utils.RejectThrottler> quotaMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldThrottle(com.github.ambry.rest.RestRequest restRequest)
Returntrue
if throttling is required.
-