类 ApolloDataSource<T>
java.lang.Object
com.alibaba.csp.sentinel.datasource.AbstractDataSource<String,T>
com.alibaba.csp.sentinel.datasource.apollo.ApolloDataSource<T>
- 所有已实现的接口:
com.alibaba.csp.sentinel.datasource.ReadableDataSource<String,T>
public class ApolloDataSource<T>
extends com.alibaba.csp.sentinel.datasource.AbstractDataSource<String,T>
A read-only
When the rule is changed in Apollo, it will take effect in real time.
DataSource with Apollo as its configuration
source.
When the rule is changed in Apollo, it will take effect in real time.
- 作者:
- Jason Song, Haojun Ren
-
字段概要
从类继承的字段 com.alibaba.csp.sentinel.datasource.AbstractDataSource
parser, property -
构造器概要
构造器 -
方法概要
从类继承的方法 com.alibaba.csp.sentinel.datasource.AbstractDataSource
getProperty, loadConfig, loadConfig
-
构造器详细资料
-
ApolloDataSource
public ApolloDataSource(String namespaceName, String ruleKey, String defaultRuleValue, com.alibaba.csp.sentinel.datasource.Converter<String, T> parser) Constructs the Apollo data source- 参数:
namespaceName- the namespace name in Apollo, should not be null or emptyruleKey- the rule key in the namespace, should not be null or emptydefaultRuleValue- the default rule value when the ruleKey is not found or any error occurredparser- the parser to transform string configuration to actual flow rules
-
-
方法详细资料