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 Details

  • 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 key
      label - 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

      public void updateSyncToken(String storeName, String syncToken)
      Update the sync token for a client store.
      Parameters:
      storeName - the name of the client store.
      syncToken - the sync token.