public class AMRateLimiter extends Object
| Modifier and Type | Field and Description |
|---|---|
ConcurrentHashMap<String,ApiKeyRequestCounter> |
keyInformation |
ConcurrentHashMap<String,PolicyRateLimit> |
policyRateLimits |
| Constructor and Description |
|---|
AMRateLimiter() |
| Modifier and Type | Method and Description |
|---|---|
ApiManagementConfiguration |
getAmc() |
Outcome |
handleRequest(Exchange exc) |
LimitReachedAnswer |
isRequestLimitReached(String service,
String apiKey) |
void |
setAmc(ApiManagementConfiguration amc) |
void |
setResponseToServiceUnavailable(Exchange exc,
PolicyRateLimit prl) |
public ConcurrentHashMap<String,ApiKeyRequestCounter> keyInformation
public ConcurrentHashMap<String,PolicyRateLimit> policyRateLimits
public ApiManagementConfiguration getAmc()
public void setAmc(ApiManagementConfiguration amc)
public void setResponseToServiceUnavailable(Exchange exc, PolicyRateLimit prl) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic LimitReachedAnswer isRequestLimitReached(String service, String apiKey)
Copyright © 2019. All Rights Reserved.