All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchdarkly.client.consul.package-info Maven / Gradle / Ivy

The newest version!
/**
 * This package provides a Consul-backed feature store for the LaunchDarkly Java SDK.
 * 

* For more details about how and why you can use a persistent feature store, see: * https://docs.launchdarkly.com/v2.0/docs/using-a-persistent-feature-store *

* To use the Consul feature store with the LaunchDarkly client, you will first obtain a * builder by calling {@link com.launchdarkly.client.consul.ConsulComponents#consulFeatureStore()}, then optionally * modify its properties, and then include it in your client configuration. For example: * *

 * import com.launchdarkly.client.*;
 * import com.launchdarkly.client.consul.*;

 * ConsulFeatureStoreBuilder store = ConsulComponents.consulFeatureStore()
 *     .caching(FeatureStoreCacheConfig.enabled().ttlSeconds(30));
 * LDConfig config = new LDConfig.Builder()
 *     .featureStoreFactory(store)
 *     .build();
 * 
* * The default Consul configuration uses an address of localhost:8500. To customize any * properties of Consul, you can use the methods on {@link com.launchdarkly.client.consul.ConsulFeatureStoreBuilder}. *

* If you are using the same Consul host as a feature store for multiple LaunchDarkly * environments, use the {@link com.launchdarkly.client.consul.ConsulFeatureStoreBuilder#prefix(String)} * option and choose a different prefix string for each, so they will not interfere with each * other's data. */ package com.launchdarkly.client.consul;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy