- cacheForever() - Method in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
Specifies that the in-memory cache should never expire.
- cacheMillis(long) - Method in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
- cacheSeconds(long) - Method in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
- CacheStats(long, long, long, long, long, long) - Constructor for class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
Constructs a new instance.
- cacheTime - Variable in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
- cacheTime(Duration) - Method in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
Specifies the cache TTL.
- capacity - Variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- capacity(int) - Method in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
Set the capacity of the events buffer.
- Challenge(String, String) - Constructor for class com.launchdarkly.sdk.server.interfaces.HttpAuthentication.Challenge
-
Constructs an instance.
- classpathResources(String...) - Method in class com.launchdarkly.sdk.server.integrations.FileDataSourceBuilder
-
Adds any number of classpath resources for loading flag data.
- clearRules() - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Removes any existing rules from the flag.
- clearUserTargets() - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Removes any existing user targets from the flag.
- CLIENT_SIDE_ONLY - Static variable in class com.launchdarkly.sdk.server.FlagsStateOption
-
Specifies that only flags marked for use with the client-side SDK should be included in the state object.
- ClientContext - Interface in com.launchdarkly.sdk.server.interfaces
-
Context information provided by the
LDClient
when creating components.
- close() - Method in interface com.launchdarkly.sdk.server.interfaces.DataSource
-
Tells the component to shut down and release any resources it is using.
- close() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Closes the LaunchDarkly client event processing thread.
- close() - Method in class com.launchdarkly.sdk.server.LDClient
-
- com.launchdarkly.sdk - package com.launchdarkly.sdk
-
Base namespace for LaunchDarkly Java-based SDKs, containing common types.
- com.launchdarkly.sdk.json - package com.launchdarkly.sdk.json
-
Helper classes and methods for interoperability with JSON.
- com.launchdarkly.sdk.server - package com.launchdarkly.sdk.server
-
Main package for the LaunchDarkly Server-Side Java SDK, containing the client and configuration classes.
- com.launchdarkly.sdk.server.integrations - package com.launchdarkly.sdk.server.integrations
-
This package contains integration tools for connecting the SDK to other software components, or
configuring how it connects to LaunchDarkly.
- com.launchdarkly.sdk.server.interfaces - package com.launchdarkly.sdk.server.interfaces
-
The package for interfaces that allow customization of LaunchDarkly components, and interfaces
to other advanced SDK features.
- Components - Class in com.launchdarkly.sdk.server
-
Provides configurable factories for the standard implementations of LaunchDarkly component interfaces.
- connectTimeout - Variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- connectTimeout(Duration) - Method in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
Sets the connection timeout.
- Converter() - Constructor for class com.launchdarkly.sdk.LDValue.Converter
-
- country(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Set the country for a user.
- COUNTRY - Static variable in class com.launchdarkly.sdk.UserAttribute
-
Represents the country attribute.
- createDataSource(ClientContext, DataSourceUpdates) - Method in class com.launchdarkly.sdk.server.integrations.FileDataSourceBuilder
-
Used internally by the LaunchDarkly client.
- createDataSource(ClientContext, DataSourceUpdates) - Method in class com.launchdarkly.sdk.server.integrations.TestData
-
Called internally by the SDK to associate this test data source with an LDClient
instance.
- createDataSource(ClientContext, DataSourceUpdates) - Method in interface com.launchdarkly.sdk.server.interfaces.DataSourceFactory
-
Creates an implementation instance.
- createDataStore(ClientContext, DataStoreUpdates) - Method in interface com.launchdarkly.sdk.server.interfaces.DataStoreFactory
-
Creates an implementation instance.
- createEventProcessor(ClientContext) - Method in interface com.launchdarkly.sdk.server.interfaces.EventProcessorFactory
-
Creates an implementation instance.
- createEventSender(BasicConfiguration, HttpConfiguration) - Method in interface com.launchdarkly.sdk.server.interfaces.EventSenderFactory
-
Called by the SDK to create the implementation object.
- createHttpConfiguration(BasicConfiguration) - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfigurationFactory
-
Creates the configuration object.
- createLoggingConfiguration(BasicConfiguration) - Method in interface com.launchdarkly.sdk.server.interfaces.LoggingConfigurationFactory
-
Creates the configuration object.
- createPersistentDataStore(ClientContext) - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStoreFactory
-
- custom(String, String) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Adds a String
-valued custom attribute.
- custom(String, int) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Adds an integer-valued custom attribute.
- custom(String, double) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Adds a double-precision numeric custom attribute.
- custom(String, boolean) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add a boolean-valued custom attribute.
- custom(String, LDValue) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add a custom attribute whose value can be any JSON type, using
LDValue
.
- Custom(long, String, LDUser, LDValue, Double) - Constructor for class com.launchdarkly.sdk.server.interfaces.Event.Custom
-
Constructs a custom event.
- DataKind(String, Function<DataStoreTypes.ItemDescriptor, String>, Function<String, DataStoreTypes.ItemDescriptor>) - Constructor for class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.DataKind
-
Constructs a DataKind instance.
- DataModel - Class in com.launchdarkly.sdk.server
-
Contains information about the internal data model for feature flags and user segments.
- dataSource() - Static method in class com.launchdarkly.sdk.server.integrations.FileData
-
- dataSource() - Static method in class com.launchdarkly.sdk.server.integrations.TestData
-
Creates a new instance of the test data source.
- DataSource - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for an object that receives updates to feature flags, user segments, and anything
else that might come from LaunchDarkly, and passes them to a
DataStore
.
- dataSource(DataSourceFactory) - Method in class com.launchdarkly.sdk.server.LDConfig.Builder
-
Sets the implementation of the component that receives feature flag data from LaunchDarkly,
using a factory object.
- DataSourceFactory - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for a factory that creates some implementation of
DataSource
.
- dataSourceStatusChanged(DataSourceStatusProvider.Status) - Method in interface com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.StatusListener
-
Called when any property of the data source status has changed.
- DataSourceStatusProvider - Interface in com.launchdarkly.sdk.server.interfaces
-
An interface for querying the status of a
DataSource
.
- DataSourceStatusProvider.ErrorInfo - Class in com.launchdarkly.sdk.server.interfaces
-
A description of an error condition that the data source encountered.
- DataSourceStatusProvider.ErrorKind - Enum in com.launchdarkly.sdk.server.interfaces
-
- DataSourceStatusProvider.State - Enum in com.launchdarkly.sdk.server.interfaces
-
- DataSourceStatusProvider.Status - Class in com.launchdarkly.sdk.server.interfaces
-
Information about the data source's status and about the last status change.
- DataSourceStatusProvider.StatusListener - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for receiving status change notifications.
- DataSourceUpdates - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface that a data source implementation will use to push data into the SDK.
- DataStore - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for a data store that holds feature flags and related data received by the SDK.
- dataStore(DataStoreFactory) - Method in class com.launchdarkly.sdk.server.LDConfig.Builder
-
Sets the implementation of the data store to be used for holding feature flags and
related data received from LaunchDarkly, using a factory object.
- DataStoreFactory - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for a factory that creates some implementation of
DataStore
.
- dataStoreStatusChanged(DataStoreStatusProvider.Status) - Method in interface com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.StatusListener
-
Called when the store status has changed.
- DataStoreStatusProvider - Interface in com.launchdarkly.sdk.server.interfaces
-
An interface for querying the status of a persistent data store.
- DataStoreStatusProvider.CacheStats - Class in com.launchdarkly.sdk.server.interfaces
-
A snapshot of cache statistics.
- DataStoreStatusProvider.Status - Class in com.launchdarkly.sdk.server.interfaces
-
Information about a status change.
- DataStoreStatusProvider.StatusListener - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for receiving status change notifications.
- DataStoreTypes - Class in com.launchdarkly.sdk.server.interfaces
-
Types that are used by the
DataStore
interface.
- DataStoreTypes.DataKind - Class in com.launchdarkly.sdk.server.interfaces
-
Represents a separately namespaced collection of storable data items.
- DataStoreTypes.FullDataSet<TDescriptor> - Class in com.launchdarkly.sdk.server.interfaces
-
Wrapper for a set of storable items being passed to a data store.
- DataStoreTypes.ItemDescriptor - Class in com.launchdarkly.sdk.server.interfaces
-
A versioned item (or placeholder) storable in a
DataStore
.
- DataStoreTypes.KeyedItems<TDescriptor> - Class in com.launchdarkly.sdk.server.interfaces
-
- DataStoreTypes.SerializedItemDescriptor - Class in com.launchdarkly.sdk.server.interfaces
-
- DataStoreUpdates - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface that a data store implementation can use to report information back to the SDK.
- DEFAULT - Static variable in class com.launchdarkly.sdk.server.LDConfig
-
- DEFAULT_CACHE_TTL - Static variable in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
The default value for the cache TTL.
- DEFAULT_CAPACITY - Static variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- DEFAULT_CONNECT_TIMEOUT - Static variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- DEFAULT_DIAGNOSTIC_RECORDING_INTERVAL - Static variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- DEFAULT_FLUSH_INTERVAL - Static variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- DEFAULT_INITIAL_RECONNECT_DELAY - Static variable in class com.launchdarkly.sdk.server.integrations.StreamingDataSourceBuilder
-
- DEFAULT_LOG_DATA_SOURCE_OUTAGE_AS_ERROR_AFTER - Static variable in class com.launchdarkly.sdk.server.integrations.LoggingConfigurationBuilder
-
- DEFAULT_POLL_INTERVAL - Static variable in class com.launchdarkly.sdk.server.integrations.PollingDataSourceBuilder
-
- DEFAULT_SOCKET_TIMEOUT - Static variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- DEFAULT_USER_KEYS_CAPACITY - Static variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- DEFAULT_USER_KEYS_FLUSH_INTERVAL - Static variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- deletedItem(int) - Static method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.ItemDescriptor
-
Convenience method for constructing a deleted item placeholder.
- describeConfiguration(BasicConfiguration) - Method in interface com.launchdarkly.sdk.server.interfaces.DiagnosticDescription
-
Used internally by the SDK to inspect the configuration.
- deserialize(String, Class<T>) - Static method in class com.launchdarkly.sdk.json.JsonSerialization
-
Parses an object from its JSON representation.
- deserialize(String) - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.DataKind
-
Creates an item of this kind from its serialized representation.
- DETAILS_ONLY_FOR_TRACKED_FLAGS - Static variable in class com.launchdarkly.sdk.server.FlagsStateOption
-
Specifies that any flag metadata that is normally only used for event generation - such as flag versions and
evaluation reasons - should be omitted for any flag that does not have event tracking or debugging turned on.
- DiagnosticDescription - Interface in com.launchdarkly.sdk.server.interfaces
-
Optional interface for components to describe their own configuration.
- diagnosticOptOut(boolean) - Method in class com.launchdarkly.sdk.server.LDConfig.Builder
-
Set to true to opt out of sending diagnostics data.
- diagnosticRecordingInterval - Variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- diagnosticRecordingInterval(Duration) - Method in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
Sets the interval at which periodic diagnostic data is sent.
- Double - Static variable in class com.launchdarkly.sdk.LDValue.Convert
-
- doubleValue() - Method in class com.launchdarkly.sdk.LDValue
-
Returns this value as a double
if it is numeric.
- doubleVariation(String, LDUser, double) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Calculates the floating point numeric value of a feature flag for a given user.
- doubleVariation(String, LDUser, double) - Method in class com.launchdarkly.sdk.server.LDClient
-
- doubleVariationDetail(String, LDUser, double) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Calculates the value of a feature flag for a given user, and returns an object that describes the
way the value was determined.
- doubleVariationDetail(String, LDUser, double) - Method in class com.launchdarkly.sdk.server.LDClient
-
- get(int) - Method in class com.launchdarkly.sdk.LDValue
-
Returns an array element by index.
- get(String) - Method in class com.launchdarkly.sdk.LDValue
-
Returns an object property by name.
- get(DataStoreTypes.DataKind, String) - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Retrieves an item from the specified collection, if available.
- get(DataStoreTypes.DataKind, String) - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStore
-
Retrieves an item from the specified collection, if available.
- getAll(DataStoreTypes.DataKind) - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Retrieves all items from the specified collection.
- getAll(DataStoreTypes.DataKind) - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStore
-
Retrieves all items from the specified collection.
- getAttribute(UserAttribute) - Method in class com.launchdarkly.sdk.LDUser
-
Gets the value of a user attribute, if present.
- getAvatar() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the avatar property for the user, if set.
- getBasic() - Method in interface com.launchdarkly.sdk.server.interfaces.ClientContext
-
The SDK's basic global properties.
- getCacheStats() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Returns statistics about cache usage, if this data store implementation supports caching.
- getCacheStats() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider
-
Queries the current cache statistics, if this is a persistent store with caching enabled.
- getConnectTimeout() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The connection timeout.
- getCountry() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the country property for the user, if set.
- getCreationDate() - Method in class com.launchdarkly.sdk.server.interfaces.Event
-
The event timestamp.
- getCustomAttributes() - Method in class com.launchdarkly.sdk.LDUser
-
Returns an enumeration of all custom attribute names that were set for this user.
- getData() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.FullDataSet
-
Returns the wrapped data set.
- getData() - Method in class com.launchdarkly.sdk.server.interfaces.Event.Custom
-
The custom data associated with the event, if any.
- getDataSourceStatusProvider() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Returns an interface for tracking the status of the data source.
- getDataSourceStatusProvider() - Method in class com.launchdarkly.sdk.server.LDClient
-
- getDataStoreStatusProvider() - Method in interface com.launchdarkly.sdk.server.interfaces.DataSourceUpdates
-
Returns an object that provides status tracking for the data store, if applicable.
- getDataStoreStatusProvider() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Returns an interface for tracking the status of a persistent data store.
- getDataStoreStatusProvider() - Method in class com.launchdarkly.sdk.server.LDClient
-
- getDebugEventsUntilDate() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
If debugging is enabled for this flag, the Unix millisecond time at which to stop debugging.
- getDefaultHeaders() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
Returns the basic headers that should be added to all HTTP requests from SDK components to
LaunchDarkly services, based on the current SDK configuration.
- getDefaultVal() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The application default value used in the evaluation.
- getEmail() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the email property for the user, if set.
- getErrorKind() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- getEvictionCount() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The number of times cache entries have been evicted.
- getException() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- getFirstName() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the first name property for the user, if set.
- getFlagReason(String) - Method in class com.launchdarkly.sdk.server.FeatureFlagsState
-
Returns the evaluation reason for an individual feature flag at the time the state was recorded.
- getFlagTracker() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Returns an interface for tracking changes in feature flag configurations.
- getFlagTracker() - Method in class com.launchdarkly.sdk.server.LDClient
-
- getFlagValue(String) - Method in class com.launchdarkly.sdk.server.FeatureFlagsState
-
Returns the value of an individual feature flag at the time the state was recorded.
- getHitCount() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The number of data queries that received cached data instead of going to the underlying data store.
- getHttp() - Method in interface com.launchdarkly.sdk.server.interfaces.ClientContext
-
The configured networking properties that apply to all components.
- getIp() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the IP property for the user, if set.
- getItem() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.ItemDescriptor
-
Returns the data item, or null if this is a placeholder for a deleted item.
- getItems() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.KeyedItems
-
Returns the wrapped data set.
- getKey() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the user's unique key.
- getKey() - Method in class com.launchdarkly.sdk.server.interfaces.Event.Custom
-
The custom event key.
- getKey() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The key of the feature flag that was evaluated.
- getKey() - Method in class com.launchdarkly.sdk.server.interfaces.FlagChangeEvent
-
Returns the key of the feature flag whose configuration has changed.
- getKind() - Method in class com.launchdarkly.sdk.EvaluationReason
-
Returns an enum indicating the general category of the reason.
- getKind() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorInfo
-
Returns an enumerated value representing the general category of the error.
- getLastError() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.Status
-
Returns information about the last error that the data source encountered, if any.
- getLastName() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the last name property for the user, if set.
- getLoadExceptionCount() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The number of times that an error occurred while querying the underlying data store.
- getLoadSuccessCount() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The number of times a cache miss resulted in successfully loading a data store item (or finding
that it did not exist in the store).
- getLogDataSourceOutageAsErrorAfter() - Method in interface com.launchdarkly.sdk.server.interfaces.LoggingConfiguration
-
The time threshold, if any, after which the SDK will log a data source outage at ERROR
level instead of WARN
level.
- getLogging() - Method in interface com.launchdarkly.sdk.server.interfaces.ClientContext
-
The configured logging properties that apply to all components.
- getMessage() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorInfo
-
Returns any additional human-readable information relevant to the error.
- getMetricValue() - Method in class com.launchdarkly.sdk.server.interfaces.Event.Custom
-
The numeric metric value associated with the event, if any.
- getMissCount() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The number of data queries that did not find cached data and went to the underlying data store.
- getName() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the full name property for the user, if set.
- getName() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.DataKind
-
A case-sensitive alphabetic string that uniquely identifies this data kind.
- getName() - Method in class com.launchdarkly.sdk.UserAttribute
-
Returns the case-sensitive attribute name.
- getNewValue() - Method in class com.launchdarkly.sdk.server.interfaces.FlagValueChangeEvent
-
Returns the new value of the flag for the specified user.
- getOldValue() - Method in class com.launchdarkly.sdk.server.interfaces.FlagValueChangeEvent
-
Returns the last known value of the flag for the specified user prior to the update.
- getPrereqOf() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
If this flag was evaluated as a prerequisite for another flag, the key of the other flag.
- getPrerequisiteKey() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- getPrivateAttributes() - Method in class com.launchdarkly.sdk.LDUser
-
Returns an enumeration of all attributes that were marked private for this user.
- getProxy() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The proxy configuration, if any.
- getProxyAuthentication() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The authentication method to use for a proxy, if any.
- getRealm() - Method in class com.launchdarkly.sdk.server.interfaces.HttpAuthentication.Challenge
-
The authentication realm, if any.
- getReason() - Method in class com.launchdarkly.sdk.EvaluationDetail
-
An object describing the main factor that influenced the flag evaluation value.
- getReason() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The
EvaluationReason
for this evaluation, or null if the reason was not requested for this evaluation.
- getRuleId() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- getRuleIndex() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- getScheme() - Method in class com.launchdarkly.sdk.server.interfaces.HttpAuthentication.Challenge
-
The authentication scheme, such as "basic".
- getSdkKey() - Method in class com.launchdarkly.sdk.server.interfaces.BasicConfiguration
-
Returns the configured SDK key.
- getSecondary() - Method in class com.launchdarkly.sdk.LDUser
-
Returns the value of the secondary key property for the user, if set.
- getSerializedItem() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.SerializedItemDescriptor
-
Returns the data item's serialized representation.
- getSocketTimeout() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The socket timeout.
- getSslSocketFactory() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The configured socket factory for secure connections.
- getState() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.Status
-
Returns an enumerated value representing the overall current state of the data source.
- getStateSince() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.Status
-
- getStatus() - Method in interface com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider
-
Returns the current status of the data source.
- getStatus() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider
-
Returns the current status of the store.
- getStatusCode() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorInfo
-
- getThreadPriority() - Method in class com.launchdarkly.sdk.server.interfaces.BasicConfiguration
-
The thread priority that should be used for any worker threads created by SDK components.
- getTime() - Method in class com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorInfo
-
Returns the date/time that the error occurred.
- getTimeFromServer() - Method in class com.launchdarkly.sdk.server.interfaces.EventSender.Result
-
Returns the parsed value of an HTTP Date header received from the remote server, if any.
- getTotalLoadTime() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.CacheStats
-
The total number of nanoseconds that the cache has spent loading new values.
- getTrustManager() - Method in interface com.launchdarkly.sdk.server.interfaces.HttpConfiguration
-
The configured trust manager for secure connections, if custom certificate verification is needed.
- getType() - Method in class com.launchdarkly.sdk.LDValue
-
Gets the JSON type for this value.
- getUser() - Method in class com.launchdarkly.sdk.server.interfaces.Event
-
The user associated with the event.
- getValue() - Method in class com.launchdarkly.sdk.EvaluationDetail
-
The result of the flag evaluation.
- getValue() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The value of the selected flag variation.
- getVariation() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The index of the selected flag variation, or -1 if the application default value was used.
- getVariationIndex() - Method in class com.launchdarkly.sdk.EvaluationDetail
-
The index of the returned value within the flag's list of variations, e.g.
- getVersion() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.ItemDescriptor
-
Returns the version number of this data, provided by the SDK.
- getVersion() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.SerializedItemDescriptor
-
Returns the version number of this data, provided by the SDK.
- getVersion() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
The version of the feature flag that was evaluated, or -1 if the flag was not found.
- Identify(long, LDUser) - Constructor for class com.launchdarkly.sdk.server.interfaces.Event.Identify
-
Constructs an identify event.
- identify(LDUser) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Registers the user.
- identify(LDUser) - Method in class com.launchdarkly.sdk.server.LDClient
-
- ifMatch(UserAttribute, LDValue...) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Starts defining a flag rule, using the "is one of" operator.
- ifNotMatch(UserAttribute, LDValue...) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Starts defining a flag rule, using the "is not one of" operator.
- Index(long, LDUser) - Constructor for class com.launchdarkly.sdk.server.interfaces.Event.Index
-
Constructs an index event.
- init(DataStoreTypes.FullDataSet<DataStoreTypes.ItemDescriptor>) - Method in interface com.launchdarkly.sdk.server.interfaces.DataSourceUpdates
-
Completely overwrites the current contents of the data store with a set of items for each collection.
- init(DataStoreTypes.FullDataSet<DataStoreTypes.ItemDescriptor>) - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Overwrites the store's contents with a set of items for each collection.
- init(DataStoreTypes.FullDataSet<DataStoreTypes.SerializedItemDescriptor>) - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStore
-
Overwrites the store's contents with a set of items for each collection.
- initialReconnectDelay - Variable in class com.launchdarkly.sdk.server.integrations.StreamingDataSourceBuilder
-
- initialReconnectDelay(Duration) - Method in class com.launchdarkly.sdk.server.integrations.StreamingDataSourceBuilder
-
Sets the initial reconnect delay for the streaming connection.
- inlineUsersInEvents - Variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- inlineUsersInEvents(boolean) - Method in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
Sets whether to include full user details in every analytics event.
- inMemoryDataStore() - Static method in class com.launchdarkly.sdk.server.Components
-
Returns a configuration object for using the default in-memory implementation of a data store.
- Integer - Static variable in class com.launchdarkly.sdk.LDValue.Convert
-
- intValue() - Method in class com.launchdarkly.sdk.LDValue
-
Returns this value as an int
if it is numeric.
- intVariation(String, LDUser, int) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Calculates the integer value of a feature flag for a given user.
- intVariation(String, LDUser, int) - Method in class com.launchdarkly.sdk.server.LDClient
-
- intVariationDetail(String, LDUser, int) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Calculates the value of a feature flag for a given user, and returns an object that describes the
way the value was determined.
- intVariationDetail(String, LDUser, int) - Method in class com.launchdarkly.sdk.server.LDClient
-
- ip(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Sets the IP for a user.
- IP - Static variable in class com.launchdarkly.sdk.UserAttribute
-
Represents the IP address attribute.
- isAnonymous() - Method in class com.launchdarkly.sdk.LDUser
-
Returns true if this user was marked anonymous.
- isAttributePrivate(UserAttribute) - Method in class com.launchdarkly.sdk.LDUser
-
Tests whether an attribute has been marked private for this user.
- isAvailable() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.Status
-
Returns true if the SDK believes the data store is now available.
- isBuiltIn() - Method in class com.launchdarkly.sdk.UserAttribute
-
Returns true for a built-in attribute or false for a custom attribute.
- isDebug() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
True if this event was generated due to debugging being enabled.
- isDefaultValue() - Method in class com.launchdarkly.sdk.EvaluationDetail
-
Returns true if the flag evaluation returned the default value, rather than one of the flag's
variations.
- isDeleted() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.SerializedItemDescriptor
-
Returns true if this is a placeholder (tombstone) for a deleted item.
- isFlagKnown(String) - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Returns true if the specified feature flag currently exists.
- isFlagKnown(String) - Method in class com.launchdarkly.sdk.server.LDClient
-
- isInitialized() - Method in interface com.launchdarkly.sdk.server.interfaces.DataSource
-
Returns true once the client has been initialized and will never return false again.
- isInitialized() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Checks whether this store has been initialized with any data yet.
- isInitialized() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Tests whether the client is ready to be used.
- isInitialized() - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStore
-
Returns true if this store has been initialized.
- isInitialized() - Method in class com.launchdarkly.sdk.server.LDClient
-
- isInt() - Method in class com.launchdarkly.sdk.LDValue
-
Tests whether this value is a number that is also an integer.
- isMustShutDown() - Method in class com.launchdarkly.sdk.server.interfaces.EventSender.Result
-
Returns true if an unrecoverable error (such as an HTTP 401 error, implying that the
SDK key is invalid) means the SDK should permanently stop trying to send events
- isNull() - Method in class com.launchdarkly.sdk.LDValue
-
Tests whether this value is a null.
- isNumber() - Method in class com.launchdarkly.sdk.LDValue
-
Tests whether this value is a number (not a numeric string).
- isOffline() - Method in class com.launchdarkly.sdk.server.interfaces.BasicConfiguration
-
Returns true if the client was configured to be completely offline.
- isOffline() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
Returns true if the client is in offline mode.
- isOffline() - Method in class com.launchdarkly.sdk.server.LDClient
-
- isRefreshNeeded() - Method in class com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider.Status
-
Returns true if the store may be out of date due to a previous outage, so the SDK should attempt to refresh
all feature flag data and rewrite it to the store.
- isStatusMonitoringEnabled() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStore
-
Returns true if this data store implementation supports status monitoring.
- isStatusMonitoringEnabled() - Method in interface com.launchdarkly.sdk.server.interfaces.DataStoreStatusProvider
-
Indicates whether the current data store implementation supports status monitoring.
- isStoreAvailable() - Method in interface com.launchdarkly.sdk.server.interfaces.PersistentDataStore
-
Tests whether the data store seems to be functioning normally.
- isString() - Method in class com.launchdarkly.sdk.LDValue
-
Tests whether this value is a string.
- isSuccess() - Method in class com.launchdarkly.sdk.server.interfaces.EventSender.Result
-
Returns true if the events were delivered.
- isTrackEvents() - Method in class com.launchdarkly.sdk.server.interfaces.Event.FeatureRequest
-
True if full event tracking is enabled for this flag.
- isValid() - Method in class com.launchdarkly.sdk.server.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).
- ItemDescriptor(int, Object) - Constructor for class com.launchdarkly.sdk.server.interfaces.DataStoreTypes.ItemDescriptor
-
Constructs a new instance.
- parse(String) - Static method in class com.launchdarkly.sdk.LDValue
-
Parses an LDValue from a JSON representation.
- persistentDataStore(PersistentDataStoreFactory) - Static method in class com.launchdarkly.sdk.server.Components
-
Returns a configuration builder for some implementation of a persistent data store.
- PersistentDataStore - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for a data store that holds feature flags and related data in a serialized form.
- PersistentDataStoreBuilder - Class in com.launchdarkly.sdk.server.integrations
-
A configurable factory for a persistent data store.
- PersistentDataStoreBuilder(PersistentDataStoreFactory) - Constructor for class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
Creates a new builder.
- PersistentDataStoreBuilder.StaleValuesPolicy - Enum in com.launchdarkly.sdk.server.integrations
-
- persistentDataStoreFactory - Variable in class com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder
-
- PersistentDataStoreFactory - Interface in com.launchdarkly.sdk.server.interfaces
-
Interface for a factory that creates some implementation of a persistent data store.
- pollingBaseURI(URI) - Method in class com.launchdarkly.sdk.server.integrations.StreamingDataSourceBuilder
-
Obsolete method for setting a different custom base URI for special polling requests.
- pollingDataSource() - Static method in class com.launchdarkly.sdk.server.Components
-
Returns a configurable factory for using polling mode to get feature flag data.
- PollingDataSourceBuilder - Class in com.launchdarkly.sdk.server.integrations
-
Contains methods for configuring the polling data source.
- PollingDataSourceBuilder() - Constructor for class com.launchdarkly.sdk.server.integrations.PollingDataSourceBuilder
-
- pollInterval - Variable in class com.launchdarkly.sdk.server.integrations.PollingDataSourceBuilder
-
- pollInterval(Duration) - Method in class com.launchdarkly.sdk.server.integrations.PollingDataSourceBuilder
-
Sets the interval at which the SDK will poll for feature flag updates.
- prerequisiteFailed(String) - Static method in class com.launchdarkly.sdk.EvaluationReason
-
- privateAttributeNames(String...) - Method in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
Marks a set of attribute names as private.
- privateAttributes - Variable in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
- privateAttributes(UserAttribute...) - Method in class com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
-
Marks a set of attribute names as private.
- privateAvatar(String) - Method in class com.launchdarkly.sdk.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.sdk.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.sdk.LDUser.Builder
-
Add a String
-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, int) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add an int-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, double) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add a double-precision numeric custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, boolean) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add a boolean-valued custom attribute that will not be sent back to LaunchDarkly.
- privateCustom(String, LDValue) - Method in class com.launchdarkly.sdk.LDUser.Builder
-
Add a custom attribute of any JSON type, that will not be sent back to LaunchDarkly.
- privateEmail(String) - Method in class com.launchdarkly.sdk.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.sdk.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.sdk.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.sdk.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.sdk.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.sdk.LDUser.Builder
-
Sets the secondary key for a user, and ensures that the secondary key attribute is not sent back to
LaunchDarkly.
- provideAuthorization(Iterable<HttpAuthentication.Challenge>) - Method in interface com.launchdarkly.sdk.server.interfaces.HttpAuthentication
-
Computes the Authorization
or Proxy-Authorization
header for an authentication challenge.
- proxyAuth - Variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- proxyAuth(HttpAuthentication) - Method in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
Sets an authentication strategy for use with an HTTP proxy.
- proxyHost - Variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- proxyHostAndPort(String, int) - Method in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
Sets an HTTP proxy for making connections to LaunchDarkly.
- proxyPort - Variable in class com.launchdarkly.sdk.server.integrations.HttpConfigurationBuilder
-
- put(String, LDValue) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, boolean) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, int) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, long) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, float) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, double) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- put(String, String) - Method in class com.launchdarkly.sdk.ObjectBuilder
-
Sets a key-value pair in the builder, overwriting any previous value for that key.
- valueForAllUsers(LDValue) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Sets the flag to always return the specified variation value for all users.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.EvaluationReason.ErrorKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.EvaluationReason.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.LDValueType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder.StaleValuesPolicy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorKind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.State
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.launchdarkly.sdk.server.interfaces.EventSender.EventDataKind
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.launchdarkly.sdk.EvaluationReason.ErrorKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.launchdarkly.sdk.EvaluationReason.Kind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Method in class com.launchdarkly.sdk.LDValue
-
Enumerates the values in an array or object.
- values() - Static method in enum com.launchdarkly.sdk.LDValueType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.launchdarkly.sdk.server.integrations.PersistentDataStoreBuilder.StaleValuesPolicy
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.ErrorKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.launchdarkly.sdk.server.interfaces.DataSourceStatusProvider.State
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.launchdarkly.sdk.server.interfaces.EventSender.EventDataKind
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- valuesAs(LDValue.Converter<T>) - Method in class com.launchdarkly.sdk.LDValue
-
Enumerates the values in an array or object, converting them to a specific type.
- variationForAllUsers(boolean) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Sets the flag to always return the specified boolean variation for all users.
- variationForAllUsers(int) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Sets the flag to always return the specified variation for all users.
- variationForUser(String, boolean) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Sets the flag to return the specified boolean variation for a specific user key when
targeting is on.
- variationForUser(String, int) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Sets the flag to return the specified variation for a specific user key when targeting
is on.
- variations(LDValue...) - Method in class com.launchdarkly.sdk.server.integrations.TestData.FlagBuilder
-
Changes the allowable variation values for the flag.
- version() - Method in interface com.launchdarkly.sdk.server.interfaces.LDClientInterface
-
The current version string of the SDK.
- version() - Method in class com.launchdarkly.sdk.server.LDClient
-
Returns the current version string of the client library.