
com.nepxion.discovery.plugin.strategy.sentinel.parser.SentinelParamFlowRuleParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discovery-plugin-strategy-sentinel Show documentation
Show all versions of discovery-plugin-strategy-sentinel Show documentation
Nepxion Discovery is an enhancement for Spring Cloud Discovery
The newest version!
package com.nepxion.discovery.plugin.strategy.sentinel.parser;
/**
* Title: Nepxion Discovery
* Description: Nepxion Discovery
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import java.util.List;
import com.alibaba.csp.sentinel.datasource.Converter;
import com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRule;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
public class SentinelParamFlowRuleParser implements Converter> {
@Override
public List convert(String source) {
return JSON.parseObject(source, new TypeReference>() {
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy