- cacheTime(long, TimeUnit) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
- caching(FeatureStoreCacheConfig) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Specifies whether local caching should be enabled and if so, sets the cache properties.
- caching(FeatureStoreCacheConfig) - Method in class com.launchdarkly.client.utils.CachingStoreWrapper.Builder
-
Sets the local caching properties.
- CachingStoreWrapper - Class in com.launchdarkly.client.utils
-
- CachingStoreWrapper(FeatureStoreCore, FeatureStoreCacheConfig) - Constructor for class com.launchdarkly.client.utils.CachingStoreWrapper
-
- CachingStoreWrapper.Builder - Class in com.launchdarkly.client.utils
-
- capacity(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the capacity of the events buffer.
- CLIENT_SIDE_ONLY - Static variable in class com.launchdarkly.client.FlagsStateOption
-
Specifies that only flags marked for use with the client-side SDK should be included in the state object.
- close() - Method in class com.launchdarkly.client.EventProcessor.NullEventProcessor
-
- close() - Method in class com.launchdarkly.client.InMemoryFeatureStore
-
Does nothing; this class does not have any resources to release
- close() - Method in class com.launchdarkly.client.LDClient
-
- close() - Method in interface com.launchdarkly.client.LDClientInterface
-
Closes the LaunchDarkly client event processing thread.
- close() - Method in class com.launchdarkly.client.RedisFeatureStore
-
- close() - Method in interface com.launchdarkly.client.UpdateProcessor
-
- close() - Method in class com.launchdarkly.client.UpdateProcessor.NullUpdateProcessor
-
- close() - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
- com.launchdarkly.client - package com.launchdarkly.client
-
- com.launchdarkly.client.files - package com.launchdarkly.client.files
-
- com.launchdarkly.client.utils - package com.launchdarkly.client.utils
-
- Components - Class in com.launchdarkly.client
-
Provides factories for the standard implementations of LaunchDarkly component interfaces.
- Components() - Constructor for class com.launchdarkly.client.Components
-
- connectTimeout(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the connection timeout in seconds for the configuration.
- connectTimeout(int, TimeUnit) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Optional override which sets the connection timeout for the underlying Jedis pool which otherwise defaults to
Protocol.DEFAULT_TIMEOUT
- connectTimeoutMillis(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the connection timeout in milliseconds for the configuration.
- country(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Set the country for a user.
- country(LDCountryCode) - Method in class com.launchdarkly.client.LDUser.Builder
-
Set the country for a user.
- createEventProcessor(String, LDConfig) - Method in interface com.launchdarkly.client.EventProcessorFactory
-
Creates an implementation instance.
- createFeatureStore() - Method in interface com.launchdarkly.client.FeatureStoreFactory
-
Creates an implementation instance.
- createFeatureStore() - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
- createUpdateProcessor(String, LDConfig, FeatureStore) - Method in class com.launchdarkly.client.files.FileDataSourceFactory
-
Used internally by the LaunchDarkly client.
- createUpdateProcessor(String, LDConfig, FeatureStore) - Method in interface com.launchdarkly.client.UpdateProcessorFactory
-
Creates an implementation instance.
- Custom(long, String, LDUser, JsonElement) - Constructor for class com.launchdarkly.client.Event.Custom
-
- custom(String, String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Adds a String
-valued custom attribute.
- custom(String, Number) - Method in class com.launchdarkly.client.LDUser.Builder
-
Adds a Number
-valued custom attribute.
- custom(String, Boolean) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a Boolean
-valued custom attribute.
- custom(String, JsonElement) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a custom attribute whose value can be any JSON type.
- customNumber(String, List<Number>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a list of Number
-valued custom attributes.
- customString(String, List<String>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a list of String
-valued custom attributes.
- customValues(String, List<JsonElement>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a custom attribute with a list of arbitrary JSON values.
- get(VersionedDataKind<T>, String) - Method in interface com.launchdarkly.client.FeatureStore
-
Returns the object to which the specified key is mapped, or
null if the key is not associated or the associated object has
been deleted.
- get(VersionedDataKind<T>, String) - Method in class com.launchdarkly.client.InMemoryFeatureStore
-
- get(VersionedDataKind<T>, String) - Method in class com.launchdarkly.client.RedisFeatureStore
-
- get(VersionedDataKind<T>, String) - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
- getAllInternal(VersionedDataKind<?>) - Method in interface com.launchdarkly.client.utils.FeatureStoreCore
-
Returns a Map
of all associated objects of a given kind.
- getAlpha2() - Method in enum com.launchdarkly.client.LDCountryCode
-
- getAlpha3() - Method in enum com.launchdarkly.client.LDCountryCode
-
- getAssignment() - Method in enum com.launchdarkly.client.LDCountryCode
-
Get the assignment state of this country code in ISO 3166-1.
- getByCode(String) - Static method in enum com.launchdarkly.client.LDCountryCode
-
Get a
CountryCode
that corresponds to the given ISO 3166-1
alpha-2 or
alpha-3 code.
- getByCode(String, boolean) - Static method in enum com.launchdarkly.client.LDCountryCode
-
Get a
CountryCode
that corresponds to the given ISO 3166-1
alpha-2 or
alpha-3 code.
- getByCode(int) - Static method in enum com.launchdarkly.client.LDCountryCode
-
- getByCodeIgnoreCase(String) - Static method in enum com.launchdarkly.client.LDCountryCode
-
Get a
CountryCode
that corresponds to the given ISO 3166-1
alpha-2 or
alpha-3 code.
- getByLocale(Locale) - Static method in enum com.launchdarkly.client.LDCountryCode
-
Get a CountryCode
that corresponds to the country code of
the given Locale
instance.
- getCacheStats() - Method in class com.launchdarkly.client.RedisFeatureStore
-
Return the underlying Guava cache stats object.
- getCacheStats() - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
Return the underlying Guava cache stats object.
- getCacheTime() - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
Returns the cache TTL.
- getCacheTimeMillis() - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
Returns the cache TTL converted to milliseconds.
- getCacheTimeUnit() - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
Returns the time unit for the cache TTL.
- getCore() - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
Return the underlying implementation object.
- getCurrency() - Method in enum com.launchdarkly.client.LDCountryCode
-
Get the currency.
- getDependencyKeys(VersionedData) - Method in class com.launchdarkly.client.VersionedDataKind
-
Gets all keys of items that this one directly depends on, if this kind of item can have
dependencies.
- getErrorKind() - Method in class com.launchdarkly.client.EvaluationReason.Error
-
- getFlagReason(String) - Method in class com.launchdarkly.client.FeatureFlagsState
-
Returns the evaluation reason for an individual feature flag at the time the state was recorded.
- getFlagValue(String) - Method in class com.launchdarkly.client.FeatureFlagsState
-
Returns the value of an individual feature flag at the time the state was recorded.
- getInternal(VersionedDataKind<?>, String) - Method in interface com.launchdarkly.client.utils.FeatureStoreCore
-
Returns the object to which the specified key is mapped, or null if no such item exists.
- getItemClass() - Method in class com.launchdarkly.client.VersionedDataKind
-
The Java class for objects of this type.
- getKey() - Method in interface com.launchdarkly.client.VersionedData
-
- getKind() - Method in class com.launchdarkly.client.EvaluationReason
-
Returns an enum indicating the general category of the reason.
- getName() - Method in enum com.launchdarkly.client.LDCountryCode
-
Get the country name.
- getNamespace() - Method in class com.launchdarkly.client.VersionedDataKind
-
A short string that serves as the unique name for the collection of these objects, e.g.
- getNumeric() - Method in enum com.launchdarkly.client.LDCountryCode
-
- getPrerequisiteKey() - Method in class com.launchdarkly.client.EvaluationReason.PrerequisiteFailed
-
- getPriority() - Method in class com.launchdarkly.client.VersionedDataKind
-
Used internally to determine the order in which collections are updated.
- getReason() - Method in class com.launchdarkly.client.EvaluationDetail
-
An object describing the main factor that influenced the flag evaluation value.
- getRuleId() - Method in class com.launchdarkly.client.EvaluationReason.RuleMatch
-
- getRuleIndex() - Method in class com.launchdarkly.client.EvaluationReason.RuleMatch
-
- getStaleValuesPolicy() - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
- getStreamApiPath() - Method in class com.launchdarkly.client.VersionedDataKind
-
The path prefix for objects of this type in events received from the streaming API.
- getValue() - Method in class com.launchdarkly.client.EvaluationDetail
-
The result of the flag evaluation.
- getValueForEvaluation(String) - Method in class com.launchdarkly.client.LDUser
-
- getVariationIndex() - Method in class com.launchdarkly.client.EvaluationDetail
-
The index of the returned value within the flag's list of variations, e.g.
- getVersion() - Method in interface com.launchdarkly.client.VersionedData
-
- Identify(long, LDUser) - Constructor for class com.launchdarkly.client.Event.Identify
-
- identify(LDUser) - Method in class com.launchdarkly.client.LDClient
-
- identify(LDUser) - Method in interface com.launchdarkly.client.LDClientInterface
-
Registers the user.
- Index(long, LDUser) - Constructor for class com.launchdarkly.client.Event.Index
-
- init(Map<VersionedDataKind<?>, Map<String, ? extends VersionedData>>) - Method in interface com.launchdarkly.client.FeatureStore
-
Initializes (or re-initializes) the store with the specified set of objects.
- init(Map<VersionedDataKind<?>, Map<String, ? extends VersionedData>>) - Method in class com.launchdarkly.client.InMemoryFeatureStore
-
- init(Map<VersionedDataKind<?>, Map<String, ? extends VersionedData>>) - Method in class com.launchdarkly.client.RedisFeatureStore
-
- init(Map<VersionedDataKind<?>, Map<String, ? extends VersionedData>>) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
- init(Map<VersionedDataKind<?>, Map<String, ? extends VersionedData>>) - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
- initialized() - Method in interface com.launchdarkly.client.FeatureStore
-
Returns true if this store has been initialized.
- initialized() - Method in class com.launchdarkly.client.InMemoryFeatureStore
-
- initialized() - Method in class com.launchdarkly.client.LDClient
-
- initialized() - Method in interface com.launchdarkly.client.LDClientInterface
-
- initialized() - Method in class com.launchdarkly.client.RedisFeatureStore
-
- initialized() - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
- initialized() - Method in interface com.launchdarkly.client.UpdateProcessor
-
Returns true once the client has been initialized and will never return false again.
- initialized() - Method in class com.launchdarkly.client.UpdateProcessor.NullUpdateProcessor
-
- initialized() - Method in class com.launchdarkly.client.utils.CachingStoreWrapper
-
- initializedInternal() - Method in interface com.launchdarkly.client.utils.FeatureStoreCore
-
Returns true if this store has been initialized.
- initInternal(Map<VersionedDataKind<?>, Map<String, VersionedData>>) - Method in interface com.launchdarkly.client.utils.FeatureStoreCore
-
Initializes (or re-initializes) the store with the specified set of objects.
- inlineUsersInEvents(boolean) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Sets whether to include full user details in every analytics event.
- inMemoryFeatureStore() - Static method in class com.launchdarkly.client.Components
-
Returns a factory for the default in-memory implementation of
FeatureStore
.
- InMemoryFeatureStore - Class in com.launchdarkly.client
-
A thread-safe, versioned store for FeatureFlag
objects and related data based on a
HashMap
.
- InMemoryFeatureStore() - Constructor for class com.launchdarkly.client.InMemoryFeatureStore
-
- intVariation(String, LDUser, int) - Method in class com.launchdarkly.client.LDClient
-
- intVariation(String, LDUser, int) - Method in interface com.launchdarkly.client.LDClientInterface
-
Calculates the integer value of a feature flag for a given user.
- intVariationDetail(String, LDUser, int) - Method in class com.launchdarkly.client.LDClient
-
- intVariationDetail(String, LDUser, int) - Method in interface com.launchdarkly.client.LDClientInterface
-
Calculates the value of a feature flag for a given user, and returns an object that describes the
way the value was determined.
- ip(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the IP for a user.
- isDefaultValue() - Method in class com.launchdarkly.client.EvaluationDetail
-
Returns true if the flag evaluation returned the default value, rather than one of the flag's
variations.
- isDeleted() - Method in interface com.launchdarkly.client.VersionedData
-
- isDependencyOrdered() - Method in class com.launchdarkly.client.VersionedDataKind
-
- isEnabled() - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
Returns true if caching will be enabled.
- isFlagKnown(String) - Method in class com.launchdarkly.client.LDClient
-
- isFlagKnown(String) - Method in interface com.launchdarkly.client.LDClientInterface
-
Returns true if the specified feature flag currently exists.
- isOffline() - Method in class com.launchdarkly.client.LDClient
-
- isOffline() - Method in interface com.launchdarkly.client.LDClientInterface
-
Returns true if the client is in offline mode.
- isValid() - Method in class com.launchdarkly.client.FeatureFlagsState
-
Returns true if this object contains a valid snapshot of feature flag state, or false if the
state could not be computed (for instance, because the client was offline or there was no user).
- password(String) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Specifies a password that will be sent to Redis in an AUTH command.
- pollingIntervalMillis(long) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the polling interval (when streaming is disabled).
- poolConfig(JedisPoolConfig) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Optional override if you wish to specify your own configuration to the underlying Jedis pool.
- prefix(String) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Optionally configures the namespace prefix for all keys stored in Redis.
- prerequisiteFailed(String) - Static method in class com.launchdarkly.client.EvaluationReason
-
- privateAttributeNames(String...) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Marks a set of attribute names private.
- privateAvatar(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the user's avatar, and ensures that the avatar attribute will not be sent back to LaunchDarkly.
- privateCountry(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly.
- privateCountry(LDCountryCode) - Method in class com.launchdarkly.client.LDUser.Builder
-
Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly.
- privateCustom(String, String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a String
-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, Number) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a Number
-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, Boolean) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a Boolean
-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, JsonElement) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a custom attribute of any JSON type, that will not be sent back to LaunchDarkly.
- privateCustomNumber(String, List<Number>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a list of Integer
-valued custom attributes.
- privateCustomString(String, List<String>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a list of String
-valued custom attributes.
- privateCustomValues(String, List<JsonElement>) - Method in class com.launchdarkly.client.LDUser.Builder
-
Add a custom attribute with a list of arbitrary JSON values.
- privateEmail(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the user's e-mail address, and ensures that the e-mail address attribute will not be sent back to LaunchDarkly.
- privateFirstName(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the user's first name, and ensures that the first name attribute will not be sent back to LaunchDarkly.
- privateIp(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the IP for a user, and ensures that the IP attribute is not sent back to LaunchDarkly.
- privateLastName(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the user's last name, and ensures that the last name attribute will not be sent back to LaunchDarkly.
- privateName(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the user's full name, and ensures that the name attribute will not be sent back to LaunchDarkly.
- privateSecondary(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the secondary key for a user, and ensures that the secondary key attribute is not sent back to
LaunchDarkly.
- proxyHost(String) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the host to use as an HTTP proxy for making connections to LaunchDarkly.
- proxyPassword(String) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Sets the password for the optional HTTP proxy.
- proxyPort(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the port to use for an HTTP proxy for making connections to LaunchDarkly.
- proxyUsername(String) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Sets the username for the optional HTTP proxy.
- samplingInterval(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
- secondary(String) - Method in class com.launchdarkly.client.LDUser.Builder
-
Sets the secondary key for a user.
- secureModeHash(LDUser) - Method in class com.launchdarkly.client.LDClient
-
- secureModeHash(LDUser) - Method in interface com.launchdarkly.client.LDClientInterface
-
- SegmentRule - Class in com.launchdarkly.client
-
- SegmentRule(List<Clause>, Integer, String) - Constructor for class com.launchdarkly.client.SegmentRule
-
- SEGMENTS - Static variable in class com.launchdarkly.client.VersionedDataKind
-
- sendEvent(Event) - Method in class com.launchdarkly.client.EventProcessor.NullEventProcessor
-
- sendEvent(Event) - Method in interface com.launchdarkly.client.EventProcessor
-
Records an event asynchronously.
- sendEvents(boolean) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set whether to send events back to LaunchDarkly.
- setBooleanValue(String, Boolean) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Sets the value of a boolean feature flag for all users.
- setDoubleValue(String, Double) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Sets the value of a double multivariate feature flag, for all users.
- setFeatureFalse(String) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Turns a feature, identified by key, to evaluate to false for every user.
- setFeatureTrue(String) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Turns a feature, identified by key, to evaluate to true for every user.
- setInitialized(boolean) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
- setIntegerValue(String, Integer) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Sets the value of an integer multivariate feature flag, for all users.
- setJsonValue(String, JsonElement) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Sets the value of a JsonElement multivariate feature flag, for all users.
- setStringValue(String, String) - Method in class com.launchdarkly.client.TestFeatureStore
-
Deprecated.
Sets the value of a string multivariate feature flag, for all users.
- socketTimeout(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the socket timeout in seconds for the configuration.
- socketTimeout(int, TimeUnit) - Method in class com.launchdarkly.client.RedisFeatureStoreBuilder
-
Optional override which sets the connection timeout for the underlying Jedis pool which otherwise defaults to
Protocol.DEFAULT_TIMEOUT
- socketTimeoutMillis(int) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the socket timeout in milliseconds for the configuration.
- sslSocketFactory(SSLSocketFactory, X509TrustManager) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Sets the SSLSocketFactory
used to secure HTTPS connections to LaunchDarkly.
- staleValuesPolicy(FeatureStoreCacheConfig.StaleValuesPolicy) - Method in class com.launchdarkly.client.FeatureStoreCacheConfig
-
Specifies how the cache (if any) should deal with old values when the cache TTL expires.
- start() - Method in class com.launchdarkly.client.UpdateProcessor.NullUpdateProcessor
-
- start() - Method in interface com.launchdarkly.client.UpdateProcessor
-
Starts the client.
- startWaitMillis(long) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set how long the constructor will block awaiting a successful connection to LaunchDarkly.
- stream(boolean) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set whether streaming mode should be enabled.
- streamURI(URI) - Method in class com.launchdarkly.client.LDConfig.Builder
-
Set the base URL of the LaunchDarkly streaming server for this configuration.
- stringVariation(String, LDUser, String) - Method in class com.launchdarkly.client.LDClient
-
- stringVariation(String, LDUser, String) - Method in interface com.launchdarkly.client.LDClientInterface
-
Calculates the String value of a feature flag for a given user.
- stringVariationDetail(String, LDUser, String) - Method in class com.launchdarkly.client.LDClient
-
- stringVariationDetail(String, LDUser, String) - Method in interface com.launchdarkly.client.LDClientInterface
-
Calculates the value of a feature flag for a given user, and returns an object that describes the
way the value was determined.