public class ClientStore extends Object
| Constructor and Description |
|---|
ClientStore(AppConfigurationProviderProperties appProperties,
ConnectionPool pool,
AppConfigurationCredentialProvider tokenCredentialProvider,
ConfigurationClientBuilderSetup clientProvider) |
| Modifier and Type | Method and Description |
|---|---|
com.azure.data.appconfiguration.models.ConfigurationSetting |
getRevison(com.azure.data.appconfiguration.models.SettingSelector settingSelector,
String storeName)
Gets the latest Configuration Setting from the revisions given config store that match the Setting Selector
criteria.
|
List<com.azure.data.appconfiguration.models.ConfigurationSetting> |
listSettings(com.azure.data.appconfiguration.models.SettingSelector settingSelector,
String storeName)
Gets a list of Configuration Settings from the given config store that match the Setting Selector criteria.
|
List<String> |
watchedKeyNames(ConfigStore store,
Map<String,List<String>> storeContextsMap)
Composite watched key names separated by comma, the key names is made up of: prefix, context and key name pattern
e.g., prefix: /config, context: /application, watched key: my.watch.key will return:
/config/application/my.watch.key
The returned watched key will be one key pattern, one or multiple specific keys e.g., 1) * 2) /application/abc*
3) /application/abc 4) /application/abc,xyz
|
String |
watchedKeyNames(ConfigStore store,
String context) |
public ClientStore(AppConfigurationProviderProperties appProperties, ConnectionPool pool, AppConfigurationCredentialProvider tokenCredentialProvider, ConfigurationClientBuilderSetup clientProvider)
public final com.azure.data.appconfiguration.models.ConfigurationSetting getRevison(com.azure.data.appconfiguration.models.SettingSelector settingSelector,
String storeName)
settingSelector - Information on which setting to pull. i.e. number of results, key value...storeName - Name of the App Configuration store to query against.public final List<com.azure.data.appconfiguration.models.ConfigurationSetting> listSettings(com.azure.data.appconfiguration.models.SettingSelector settingSelector, String storeName) throws IOException
settingSelector - Information on which setting to pull. i.e. number of results, key value...storeName - Name of the App Configuration store to query against.IOException - thrown when failed to retrieve values.public List<String> watchedKeyNames(ConfigStore store, Map<String,List<String>> storeContextsMap)
store - the store for which to composite watched key namesstoreContextsMap - map storing store name and List of context key-value pairpublic String watchedKeyNames(ConfigStore store, String context)
Copyright © 2021 Microsoft Corporation. All rights reserved.