Class ClientStore
java.lang.Object
com.azure.spring.cloud.config.stores.ClientStore
Client for connecting to and getting keys from an Azure App Configuration Instance
-
Constructor Summary
ConstructorDescriptionClientStore
(AppConfigurationProviderProperties appProperties, ConnectionPool pool, AppConfigurationCredentialProvider tokenCredentialProvider, ConfigurationClientBuilderSetup clientProvider, Boolean isDev, Boolean isKeyVaultConfigured) Creates Client store for connecting to App Configuration -
Method Summary
Modifier and TypeMethodDescriptioncom.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.ConfigurationSetting
getWatchKey
(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.void
updateSyncToken
(String storeName, String syncToken) Update the sync token for a client store.
-
Constructor Details
-
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 Details
-
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.
-
updateSyncToken
Update the sync token for a client store.- Parameters:
storeName
- the name of the client store.syncToken
- the sync token.
-