public class LazyLoadingPolicy extends RefreshPolicy
RefreshPolicy which uses an expiring cache
to maintain the internally stored configuration.| Modifier and Type | Class and Description |
|---|---|
static class |
LazyLoadingPolicy.Builder
A builder that helps construct a
LazyLoadingPolicy instance. |
| 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. |
static LazyLoadingPolicy.Builder |
newBuilder()
Creates a new builder instance.
|
cache, close, fetcher, refreshAsyncpublic java.util.concurrent.CompletableFuture<java.lang.String> getConfigurationJsonAsync()
RefreshPolicyConfigCatClient
uses it to read the current configuration value through the applied policy.getConfigurationJsonAsync in class RefreshPolicypublic static LazyLoadingPolicy.Builder newBuilder()