public class ApolloDataSource<T> extends AbstractDataSource<String,T>
DataSource with Apollo as its configuration
source.
parser, property| Constructor and Description |
|---|
ApolloDataSource(String namespaceName,
String ruleKey,
String defaultRuleValue,
Converter<String,T> parser)
Constructs the Apollo data source
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
readSource() |
getProperty, loadConfig, loadConfigpublic ApolloDataSource(String namespaceName, String ruleKey, String defaultRuleValue, Converter<String,T> parser)
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 rulesCopyright © 2020 Alibaba Group. All rights reserved.