use of com.alibaba.csp.sentinel.adapter.gateway.sc.api.matcher.WebExchangeApiMatcher in project Sentinel by alibaba.
the class GatewayApiMatcherManager method loadApiDefinitions.
static synchronized void loadApiDefinitions(/*@Valid*/
Set<ApiDefinition> definitions) {
Map<String, WebExchangeApiMatcher> apiMatcherMap = new HashMap<>();
for (ApiDefinition definition : definitions) {
apiMatcherMap.put(definition.getApiName(), new WebExchangeApiMatcher(definition));
}
API_MATCHER_MAP = apiMatcherMap;
}
Aggregations