All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nepxion.discovery.plugin.strategy.sentinel.parser.SentinelSystemRuleParser Maven / Gradle / Ivy

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.system.SystemRule; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; public class SentinelSystemRuleParser implements Converter> { @Override public List convert(String source) { return JSON.parseObject(source, new TypeReference>() { }); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy