Class ClientStore
- java.lang.Object
-
- com.azure.spring.cloud.config.stores.ClientStore
-
public final class ClientStore extends Object
Client for connecting to and getting keys from an Azure App Configuration Instance
-
-
Constructor Summary
Constructors Constructor Description ClientStore(AppConfigurationProviderProperties appProperties, ConnectionPool pool, AppConfigurationCredentialProvider tokenCredentialProvider, ConfigurationClientBuilderSetup clientProvider, Boolean isDev, Boolean isKeyVaultConfigured)Creates Client store for connecting to App Configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.http.rest.PagedIterable<com.azure.data.appconfiguration.models.ConfigurationSetting>getFeatureFlagWatchKey(com.azure.data.appconfiguration.models.SettingSelector settingSelector, String storeName)Used to load all feature flags to track changes for reload.com.azure.data.appconfiguration.models.ConfigurationSettinggetWatchKey(String key, String label, String storeName)Gets the Configuration Setting for the given config store that match the Setting Selector criteria.com.azure.core.http.rest.PagedIterable<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.voidupdateSyncToken(String storeName, String syncToken)
-
-
-
Constructor Detail
-
ClientStore
public ClientStore(AppConfigurationProviderProperties appProperties, ConnectionPool pool, AppConfigurationCredentialProvider tokenCredentialProvider, ConfigurationClientBuilderSetup clientProvider, Boolean isDev, Boolean isKeyVaultConfigured)
Creates Client store for connecting to App Configuration- Parameters:
appProperties- App Configuration Provider Propertiespool- Connections to App ConfigurationtokenCredentialProvider- optional Credential providerclientProvider- optional Client ProviderisDev- is running in Dev profileisKeyVaultConfigured- is running with Key Vault configured
-
-
Method Detail
-
getWatchKey
public com.azure.data.appconfiguration.models.ConfigurationSetting getWatchKey(String key, String label, String storeName)
Gets the Configuration Setting for the given config store that match the Setting Selector criteria. Follows retry-after-ms header.- Parameters:
key- String value of the watch keylabel- String value of the watch key, use \0 for null.storeName- Name of the App Configuration store to query against.- Returns:
- The first returned configuration.
-
getFeatureFlagWatchKey
public com.azure.core.http.rest.PagedIterable<com.azure.data.appconfiguration.models.ConfigurationSetting> getFeatureFlagWatchKey(com.azure.data.appconfiguration.models.SettingSelector settingSelector, String storeName)Used to load all feature flags to track changes for reload.- Parameters:
settingSelector- Information on which setting to pull. i.e. number of results, key value...storeName- Name of the App Configuration store to query against.- Returns:
- List of Configuration Settings.
-
listSettings
public com.azure.core.http.rest.PagedIterable<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.- Parameters:
settingSelector- Information on which setting to pull. i.e. number of results, key value...storeName- Name of the App Configuration store to query against.- Returns:
- List of Configuration Settings.
-
-