Class LDConfig
- java.lang.Object
-
- com.launchdarkly.sdk.android.LDConfig
-
public class LDConfig extends java.lang.Object
This class exposes advanced configuration options forLDClient
. Instances of this class must be constructed withLDConfig.Builder
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LDConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BACKGROUND_POLL_INTERVAL_MILLIS
The default value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: one hour.static int
MIN_BACKGROUND_POLL_INTERVAL_MILLIS
The minimum value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: 15 minutes.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allAttributesPrivate()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.int
getBackgroundPollingIntervalMillis()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.int
getConnectionTimeoutMillis()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.int
getEventsCapacity()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.int
getEventsFlushIntervalMillis()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.android.net.Uri
getEventsUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.com.google.gson.Gson
getFilteredEventGson()
Deprecated.Direct access to this object is deprecated and will be removed in the future.LDHeaderUpdater
getHeaderTransform()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.java.lang.String
getMobileKey()
java.util.Map<java.lang.String,java.lang.String>
getMobileKeys()
int
getPollingIntervalMillis()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.android.net.Uri
getPollUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.java.util.Set<UserAttribute>
getPrivateAttributes()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.android.net.Uri
getStreamUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.boolean
inlineUsersInEvents()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.boolean
isDisableBackgroundPolling()
boolean
isEvaluationReasons()
boolean
isOffline()
boolean
isStream()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.boolean
isUseReport()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.
-
-
-
Field Detail
-
DEFAULT_BACKGROUND_POLL_INTERVAL_MILLIS
public static final int DEFAULT_BACKGROUND_POLL_INTERVAL_MILLIS
The default value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: one hour.- See Also:
- Constant Field Values
-
MIN_BACKGROUND_POLL_INTERVAL_MILLIS
public static final int MIN_BACKGROUND_POLL_INTERVAL_MILLIS
The minimum value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: 15 minutes.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMobileKey
public java.lang.String getMobileKey()
-
getMobileKeys
public java.util.Map<java.lang.String,java.lang.String> getMobileKeys()
-
getPollUri
@Deprecated public android.net.Uri getPollUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.pollUri(Uri)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.serviceEndpoints(ServiceEndpointsBuilder)
.- Returns:
- the property value
-
getEventsUri
@Deprecated public android.net.Uri getEventsUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.eventsUri(Uri)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.serviceEndpoints(ServiceEndpointsBuilder)
.- Returns:
- the property value
-
getEventsCapacity
@Deprecated public int getEventsCapacity()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.eventsCapacity(int)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.events(ComponentConfigurer)
.- Returns:
- the property value
-
getEventsFlushIntervalMillis
@Deprecated public int getEventsFlushIntervalMillis()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.eventsFlushIntervalMillis(int)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.events(ComponentConfigurer)
.- Returns:
- the property value
-
getConnectionTimeoutMillis
@Deprecated public int getConnectionTimeoutMillis()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.connectionTimeoutMillis(int)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.http(ComponentConfigurer)
.- Returns:
- the property value
-
getStreamUri
@Deprecated public android.net.Uri getStreamUri()
Deprecated.This method will be removed in the future when individual base URI properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.streamUri(Uri)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.serviceEndpoints(ServiceEndpointsBuilder)
.- Returns:
- the property value
-
isOffline
public boolean isOffline()
-
isStream
@Deprecated public boolean isStream()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.stream(boolean)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.dataSource(ComponentConfigurer)
.- Returns:
- the property value
-
isUseReport
@Deprecated public boolean isUseReport()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.useReport(boolean)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.http(ComponentConfigurer)
.- Returns:
- the property value
-
getPollingIntervalMillis
@Deprecated public int getPollingIntervalMillis()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.pollingIntervalMillis(int)
()}.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.dataSource(ComponentConfigurer)
.- Returns:
- the property value
-
getBackgroundPollingIntervalMillis
@Deprecated public int getBackgroundPollingIntervalMillis()
Deprecated.This method will be removed in the future when individual data source properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.backgroundPollingIntervalMillis(int)
()}.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.dataSource(ComponentConfigurer)
.- Returns:
- the property value
-
isDisableBackgroundPolling
public boolean isDisableBackgroundPolling()
-
allAttributesPrivate
@Deprecated public boolean allAttributesPrivate()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.allAttributesPrivate()
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.events(ComponentConfigurer)
.- Returns:
- the property value
-
getPrivateAttributes
@Deprecated public java.util.Set<UserAttribute> getPrivateAttributes()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.privateAttributes(UserAttribute...)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.events(ComponentConfigurer)
.- Returns:
- the property value
-
getFilteredEventGson
@Deprecated public com.google.gson.Gson getFilteredEventGson()
Deprecated.Direct access to this object is deprecated and will be removed in the future.Returns a Gson instance that is configured to serialize event data. This is used internally by the SDK; applications should not need to reference it.- Returns:
- the Gson instance
-
inlineUsersInEvents
@Deprecated public boolean inlineUsersInEvents()
Deprecated.This method will be removed in the future when individual event-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.inlineUsersInEvents(boolean)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.events(ComponentConfigurer)
.- Returns:
- the property value
-
isEvaluationReasons
public boolean isEvaluationReasons()
-
getHeaderTransform
@Deprecated public LDHeaderUpdater getHeaderTransform()
Deprecated.This method will be removed in the future when individual HTTP-related properties are removed from the top-level configuration.Returns the setting ofLDConfig.Builder.headerTransform(LDHeaderUpdater)
.This is only applicable if you have used the deprecated builder method rather than
LDConfig.Builder.http(ComponentConfigurer)
.- Returns:
- the property value
-
-