类 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 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
  • 构造器概要

    构造器
    构造器
    说明
    ApolloDataSource(String namespaceName, String ruleKey, String defaultRuleValue, com.alibaba.csp.sentinel.datasource.Converter<String,T> parser)
    Constructs the Apollo data source
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
     

    从类继承的方法 com.alibaba.csp.sentinel.datasource.AbstractDataSource

    getProperty, loadConfig, loadConfig

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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 empty
      ruleKey - the rule key in the namespace, should not be null or empty
      defaultRuleValue - the default rule value when the ruleKey is not found or any error occurred
      parser - the parser to transform string configuration to actual flow rules
  • 方法详细资料