@Test public void getString_activatedStillLoadingFromDisk_blocksAndReturnsActivatedValue() throws Exception { loadActivatedAsyncCacheWithIncompleteTask(); loadActivatedBlockingCacheWith(ImmutableMap.of(STRING_KEY, ACTIVATED_STRING_VALUE)); String stringValue = getHandler.getString(STRING_KEY); assertThat(stringValue).isEqualTo(ACTIVATED_STRING_VALUE); }
public String getString(String key) { String activatedString = getStringFromCache(activatedConfigsCache, key); if (activatedString != null) { return activatedString; } String defaultsString = getStringFromCache(defaultConfigsCache, key); if (defaultsString != null) { return defaultsString; } logParameterValueDoesNotExist(key, "String"); return DEFAULT_VALUE_FOR_STRING; }
ConfigGetParameterHandler { public String getString(String key) { String activatedString = getStringFromCache(activatedConfigsCache, key); if (activatedString != null) { return activatedString; } String defaultsString = getStringFromCache(defaultConfigsCache, key); if (defaultsString != null) { return defaultsString; } logParameterValueDoesNotExist(key, "String"); return DEFAULT_VALUE_FOR_STRING; } }
ConfigGetParameterHandler { public String getString(String key) { String activatedString = getStringFromCache(activatedConfigsCache, key); if (activatedString != null) { return activatedString; } String defaultsString = getStringFromCache(defaultConfigsCache, key); if (defaultsString != null) { return defaultsString; } logParameterValueDoesNotExist(key, "String"); return DEFAULT_VALUE_FOR_STRING; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); }
ConfigGetParameterHandler { public String getString(String key) { String activatedString = getStringFromCache(activatedConfigsCache, key); if (activatedString != null) { return activatedString; } String defaultsString = getStringFromCache(defaultConfigsCache, key); if (defaultsString != null) { return defaultsString; } logParameterValueDoesNotExist(key, "String"); return DEFAULT_VALUE_FOR_STRING; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); String getString(String key); boolean getBoolean(String key); byte[] getByteArray(String key); double getDouble(String key); long getLong(String key); FirebaseRemoteConfigValue getValue(String key); Set<String> getKeysByPrefix(String prefix); Map<String, FirebaseRemoteConfigValue> getAll(); }
ConfigGetParameterHandler { public String getString(String key) { String activatedString = getStringFromCache(activatedConfigsCache, key); if (activatedString != null) { return activatedString; } String defaultsString = getStringFromCache(defaultConfigsCache, key); if (defaultsString != null) { return defaultsString; } logParameterValueDoesNotExist(key, "String"); return DEFAULT_VALUE_FOR_STRING; } ConfigGetParameterHandler(
      ConfigCacheClient activatedConfigsCache, ConfigCacheClient defaultConfigsCache); String getString(String key); boolean getBoolean(String key); byte[] getByteArray(String key); double getDouble(String key); long getLong(String key); FirebaseRemoteConfigValue getValue(String key); Set<String> getKeysByPrefix(String prefix); Map<String, FirebaseRemoteConfigValue> getAll(); @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
  static final Charset FRC_BYTE_ARRAY_ENCODING; }