use of com.tencent.polaris.ratelimit.client.pojo.CommonQuotaRequest in project polaris-java by polarismesh.
the class DefaultLimitAPI method getQuota.
@Override
public QuotaResponse getQuota(QuotaRequest request) throws PolarisException {
checkAvailable("LimitAPI");
LimitValidator.validateQuotaRequest(request);
CommonQuotaRequest commonQuotaRequest = new CommonQuotaRequest(request, sdkContext.getConfig());
QuotaResponse response = quotaFlow.getQuota(commonQuotaRequest);
reportRateLimit(request, response);
return response;
}
Aggregations