public class ManualPollingPolicy extends RefreshPolicy
RefreshPolicy which fetches the latest configuration
over HTTP every time when a get is called on the ConfigCatClient.| Constructor and Description |
|---|
ManualPollingPolicy(ConfigFetcher configFetcher,
ConfigCache cache)
Constructor used by the child classes.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.String> |
getConfigurationJsonAsync()
Child classes has to implement this method, the
ConfigCatClient
uses it to read the current configuration value through the applied policy. |
cache, close, fetcher, refreshAsyncpublic ManualPollingPolicy(ConfigFetcher configFetcher, ConfigCache cache)
configFetcher - the internal config fetcher instance.cache - the internal cache instance.public java.util.concurrent.CompletableFuture<java.lang.String> getConfigurationJsonAsync()
RefreshPolicyConfigCatClient
uses it to read the current configuration value through the applied policy.getConfigurationJsonAsync in class RefreshPolicy