Skip navigation links
A C D E F G H I L M N P Q R S T U V W 

A

addQueryParam(URI, String, String) - Static method in class com.launchdarkly.sdk.internal.http.HttpHelpers
Adds the query param to the URI.
applyToHttpClientBuilder(OkHttpClient.Builder) - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Applies the configured properties to an OkHttp client builder.

C

checkIfErrorIsRecoverableAndLog(LDLogger, String, String, int, String) - Static method in class com.launchdarkly.sdk.internal.http.HttpErrors
Logs an HTTP error or network error at the appropriate level and determines whether it is recoverable (as defined by HttpErrors.isHttpErrorRecoverable(int)).
close() - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
close() - Method in class com.launchdarkly.sdk.internal.events.DefaultEventSender
 
com.launchdarkly.sdk.internal - package com.launchdarkly.sdk.internal
This package contains general-purpose helpers that can be used by both the Java SDK and the Android SDK.
com.launchdarkly.sdk.internal.events - package com.launchdarkly.sdk.internal.events
This package contains the core implementation of analytics events and diagnostic events used by the Java SDK and Android SDK.
com.launchdarkly.sdk.internal.http - package com.launchdarkly.sdk.internal.http
This package contains HTTP-related helpers that can be used by both the Java SDK and the Android SDK, based on v4.x of the OkHttp client.
concatenateUriPath(URI, String) - Static method in class com.launchdarkly.sdk.internal.http.HttpHelpers
Safely concatenates a path, ensuring that there is exactly one slash between segments.
ConsistencyMeasurement(boolean, long) - Constructor for class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ConsistencyMeasurement
Construct a new consistency measurement.
createEventAndReset(long, long) - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Creates a statistics event and then resets the counters.
Custom(long, String, LDContext, LDValue, Double) - Constructor for class com.launchdarkly.sdk.internal.events.Event.Custom
Constructs a custom event.

D

DEFAULT_ANALYTICS_REQUEST_PATH - Static variable in class com.launchdarkly.sdk.internal.events.DefaultEventSender
Default value for analyticsRequestPath parameter, for the server-side SDK.
DEFAULT_DIAGNOSTIC_REQUEST_PATH - Static variable in class com.launchdarkly.sdk.internal.events.DefaultEventSender
Default value for diagnosticRequestPath parameter, for the server-side SDK.
DEFAULT_EVENT_SENDING_THREAD_POOL_SIZE - Static variable in class com.launchdarkly.sdk.internal.events.EventsConfiguration
Default number of event-sending worker threads.
DEFAULT_RETRY_DELAY_MILLIS - Static variable in class com.launchdarkly.sdk.internal.events.DefaultEventSender
Default value for retryDelayMillis parameter.
DefaultEventProcessor - Class in com.launchdarkly.sdk.internal.events
The internal component that processes and delivers analytics events.
DefaultEventProcessor(EventsConfiguration, ScheduledExecutorService, int, LDLogger) - Constructor for class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
Creates an instance.
DefaultEventSender - Class in com.launchdarkly.sdk.internal.events
The default implementation of delivering JSON data to an LaunchDarkly event endpoint.
DefaultEventSender(HttpProperties, String, String, long, boolean, LDLogger) - Constructor for class com.launchdarkly.sdk.internal.events.DefaultEventSender
Creates an instance.
defaults() - Static method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns a minimal set of properties.
DiagnosticConfigProperty - Enum in com.launchdarkly.sdk.internal.events
Defines the standard properties that are allowed in the configuration section of a diagnostic initialization event.
DiagnosticEvent - Class in com.launchdarkly.sdk.internal.events
Base class for diagnostic events.
DiagnosticStore - Class in com.launchdarkly.sdk.internal.events
Implementation of basic diagnostic event creation.
DiagnosticStore(DiagnosticStore.SdkDiagnosticParams) - Constructor for class com.launchdarkly.sdk.internal.events.DiagnosticStore
Constructs an instance.
DiagnosticStore.SdkDiagnosticParams - Class in com.launchdarkly.sdk.internal.events
Parameters for creating a DiagnosticStore.

E

ErrorMeasurement(boolean, boolean) - Constructor for class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ErrorMeasurement
Construct an error measurement.
Event - Class in com.launchdarkly.sdk.internal.events
Base class for all analytics events that are generated by the client.
Event(long, LDContext) - Constructor for class com.launchdarkly.sdk.internal.events.Event
Base event constructor.
Event.Custom - Class in com.launchdarkly.sdk.internal.events
A custom event created with one of the SDK's track methods.
Event.FeatureRequest - Class in com.launchdarkly.sdk.internal.events
An event generated by a feature flag evaluation.
Event.Identify - Class in com.launchdarkly.sdk.internal.events
An event created with the SDK's identify method (or generated automatically at startup if it is a client-side SDK).
Event.Index - Class in com.launchdarkly.sdk.internal.events
An event created internally by the SDK to hold user data that may be referenced by multiple events.
Event.MigrationOp - Class in com.launchdarkly.sdk.internal.events
An event generated by a migration operation.
Event.MigrationOp.ConsistencyMeasurement - Class in com.launchdarkly.sdk.internal.events
Measurement used to indicate if the values in a read operation were consistent.
Event.MigrationOp.ErrorMeasurement - Class in com.launchdarkly.sdk.internal.events
Error measurement for a migration operation.
Event.MigrationOp.InvokedMeasurement - Class in com.launchdarkly.sdk.internal.events
Invoked measurement for a migration op.
Event.MigrationOp.LatencyMeasurement - Class in com.launchdarkly.sdk.internal.events
Latency measurement for a migration operation.
EventContextDeduplicator - Interface in com.launchdarkly.sdk.internal.events
Interface for a strategy for removing duplicate contexts from the event stream.
EventProcessor - Interface in com.launchdarkly.sdk.internal.events
Interface describing the DefaultEventProcessor methods.
EventsConfiguration - Class in com.launchdarkly.sdk.internal.events
Internal representation of the configuration properties for DefaultEventProcessor.
EventsConfiguration(boolean, int, EventContextDeduplicator, long, DiagnosticStore, EventSender, int, URI, long, boolean, boolean, Collection<AttributeRef>) - Constructor for class com.launchdarkly.sdk.internal.events.EventsConfiguration
Creates an instance.
EventSender - Interface in com.launchdarkly.sdk.internal.events
Internal interface for a component that can deliver preformatted event data.
EventSender.Result - Class in com.launchdarkly.sdk.internal.events
Encapsulates the results of a call to an EventSender method.

F

FeatureRequest(long, String, LDContext, int, int, LDValue, LDValue, EvaluationReason, String, boolean, Long, boolean, long, boolean) - Constructor for class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
Constructs a feature request event.
FeatureRequest(long, String, LDContext, int, int, LDValue, LDValue, EvaluationReason, String, boolean, Long, boolean) - Constructor for class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
Constructs a feature request event.
flush() - Method in interface com.launchdarkly.sdk.internal.events.EventContextDeduplicator
Forgets any cached context information, so all subsequent contexs will be treated as new.
flushAsync() - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
flushAsync() - Method in interface com.launchdarkly.sdk.internal.events.EventProcessor
Schedules an asynchronous flush.
flushBlocking() - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
flushBlocking() - Method in interface com.launchdarkly.sdk.internal.events.EventProcessor
Flushes and blocks until the flush is done.

G

getConsistencyMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
Get the Event.MigrationOp.ConsistencyMeasurement for this operation.
getContext() - Method in class com.launchdarkly.sdk.internal.events.Event
The context associated with the event.
getCreationDate() - Method in class com.launchdarkly.sdk.internal.events.Event
The event timestamp.
getData() - Method in class com.launchdarkly.sdk.internal.events.Event.Custom
The custom data associated with the event, if any.
getDataSinceDate() - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Returns the millisecond timestamp when the current diagnostic stats began.
getDebugEventsUntilDate() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
If debugging is enabled for this flag, the Unix millisecond time at which to stop debugging.
getDefaultHeaders() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns an immutable view of the default headers.
getDefaultVal() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The application default value used in the evaluation.
getDefaultVal() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The application default value used in the evaluation.
getDiagnosticId() - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Returns the unique diagnostic identifier.
getErrorMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The Event.MigrationOp.ErrorMeasurement for this operation.
getFeatureKey() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The key of the feature flag that was evaluated.
getFlagVersion() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The version of the feature flag that was evaluated, or -1 if the flag was not found.
getFlushInterval() - Method in interface com.launchdarkly.sdk.internal.events.EventContextDeduplicator
Returns the millisecond interval, if any, at which the event processor should call flush().
getHeadersTransformer() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns the callback for transforming headers, if any.
getInitEvent() - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Returns the initial diagnostic event as a JSON object.
getInvokedMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The Event.MigrationOp.InvokedMeasurement for this operation.
getJsonValue() - Method in class com.launchdarkly.sdk.internal.events.DiagnosticEvent
Returns the JSON representation of the event.
getKey() - Method in class com.launchdarkly.sdk.internal.events.Event.Custom
The custom event key.
getKey() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The key of the feature flag that was evaluated.
getLatencyMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The Event.MigrationOp.LatencyMeasurement for this operation.
getMetricValue() - Method in class com.launchdarkly.sdk.internal.events.Event.Custom
The numeric metric value associated with the event, if any.
getNewLatencyMs() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.LatencyMeasurement
Get the new method execution latency in milliseconds.
getOldLatencyMs() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.LatencyMeasurement
Get the old method execution latency in milliseconds.
getOperation() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
Get the migration operation for this event.
getPrereqOf() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
If this flag was evaluated as a prerequisite for another flag, the key of the other flag.
getReason() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The EvaluationReason for this evaluation, or null if the reason was not requested for this evaluation.
getReason() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The EvaluationReason for this evaluation, or null if the reason was not requested for this evaluation.
getSamplingRatio() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
 
getSamplingRatio() - Method in class com.launchdarkly.sdk.internal.events.Event
Ratio used for sampling the event.
getSamplingRatio() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ConsistencyMeasurement
Get the sampling ratio for the consistency check.
getSamplingRatio() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
Get the sampling ratio for this event.
getSharedHttpClient() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns a preconfigured shared HTTP client, if one was defined.
getStatus() - Method in exception com.launchdarkly.sdk.internal.http.HttpErrors.HttpErrorException
Returns the status code.
getTimeFromServer() - Method in class com.launchdarkly.sdk.internal.events.EventSender.Result
Returns the parsed value of an HTTP Date header received from the remote server, if any.
getTransformedDefaultHeaders() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns an immutable view of the headers to add to a request.
getValue() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The value of the selected flag variation.
getValue() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The value of the selected flag variation.
getVariation() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The index of the selected flag variation, or -1 if the application default value was used.
getVariation() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp
The index of the selected flag variation, or -1 if the application default value was used.
getVersion() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
The version of the feature flag that was evaluated, or -1 if the flag was not found.
GsonHelpers - Class in com.launchdarkly.sdk.internal
General-purpose Gson helpers.
GsonHelpers() - Constructor for class com.launchdarkly.sdk.internal.GsonHelpers
 
gsonInstance() - Static method in class com.launchdarkly.sdk.internal.GsonHelpers
A singleton instance of Gson with the default configuration.

H

hasMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ErrorMeasurement
Returns true if there are errors present for either of the origins.
hasMeasurement() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.LatencyMeasurement
Returns true if either of the durations are set.
hasNewError() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ErrorMeasurement
Check if there was an error executing the new method.
hasOldError() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ErrorMeasurement
Check if there was an error executing the old method.
HeadersTransformer - Interface in com.launchdarkly.sdk.internal.http
Callback interface for dynamically configuring HTTP headers on a per-request basis.
HttpConsts - Class in com.launchdarkly.sdk.internal.http
 
HttpConsts() - Constructor for class com.launchdarkly.sdk.internal.http.HttpConsts
 
httpErrorDescription(int) - Static method in class com.launchdarkly.sdk.internal.http.HttpErrors
Returns a text description of an HTTP error.
HttpErrorException(int) - Constructor for exception com.launchdarkly.sdk.internal.http.HttpErrors.HttpErrorException
Constructs an instance.
HttpErrors - Class in com.launchdarkly.sdk.internal.http
Contains shared helpers related to HTTP response validation.
HttpErrors.HttpErrorException - Exception in com.launchdarkly.sdk.internal.http
Represents an HTTP response error as an exception.
HttpHelpers - Class in com.launchdarkly.sdk.internal.http
Helper methods related to HTTP.
HttpProperties - Class in com.launchdarkly.sdk.internal.http
Internal container for HTTP parameters used by SDK components.
HttpProperties(long, Map<String, String>, HeadersTransformer, Proxy, Authenticator, SocketFactory, long, SSLSocketFactory, X509TrustManager) - Constructor for class com.launchdarkly.sdk.internal.http.HttpProperties
Constructs an instance.
HttpProperties(OkHttpClient, Map<String, String>, HeadersTransformer) - Constructor for class com.launchdarkly.sdk.internal.http.HttpProperties
Constructs an instance with a preconfigured shared HTTP client.

I

Identify(long, LDContext) - Constructor for class com.launchdarkly.sdk.internal.events.Event.Identify
Constructs an identify event.
Index(long, LDContext) - Constructor for class com.launchdarkly.sdk.internal.events.Event.Index
Constructs an index event.
InvokedMeasurement(boolean, boolean) - Constructor for class com.launchdarkly.sdk.internal.events.Event.MigrationOp.InvokedMeasurement
Construct a new invoked measurement.
isAsciiHeaderValue(String) - Static method in class com.launchdarkly.sdk.internal.http.HttpHelpers
Tests whether a string contains only characters that are safe to use in an HTTP header value.
isConsistent() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.ConsistencyMeasurement
Check if the operation was consistent.
isDebug() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
True if this event was generated due to debugging being enabled.
isExcludeFromSummaries() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
 
isHttpErrorRecoverable(int) - Static method in class com.launchdarkly.sdk.internal.http.HttpErrors
Tests whether an HTTP error status represents a condition that might resolve on its own if we retry.
isMustShutDown() - Method in class com.launchdarkly.sdk.internal.events.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
isSuccess() - Method in class com.launchdarkly.sdk.internal.events.EventSender.Result
Returns true if the events were delivered.
isTrackEvents() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
True if full event tracking is enabled for this flag.

L

LatencyMeasurement(Long, Long) - Constructor for class com.launchdarkly.sdk.internal.events.Event.MigrationOp.LatencyMeasurement
Construct a latency measurement.

M

MigrationOp(long, LDContext, String, int, int, LDValue, LDValue, EvaluationReason, long, String, Event.MigrationOp.InvokedMeasurement, Event.MigrationOp.ConsistencyMeasurement, Event.MigrationOp.LatencyMeasurement, Event.MigrationOp.ErrorMeasurement) - Constructor for class com.launchdarkly.sdk.internal.events.Event.MigrationOp
Construct a new migration operation event.

N

name - Variable in enum com.launchdarkly.sdk.internal.events.DiagnosticConfigProperty
 

P

processContext(LDContext) - Method in interface com.launchdarkly.sdk.internal.events.EventContextDeduplicator
Updates the internal state if necessary to reflect that we have seen the given context.

Q

QUERY_PARAM_FILTER - Static variable in class com.launchdarkly.sdk.internal.http.HttpConsts
 

R

recordEventsInBatch(int) - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Records the number of events in the last flush payload.
recordStreamInit(long, long, boolean) - Method in class com.launchdarkly.sdk.internal.events.DiagnosticStore
Records a successful or failed stream initialization.
Result(boolean, boolean, Date) - Constructor for class com.launchdarkly.sdk.internal.events.EventSender.Result
Constructs an instance.

S

Sampler - Class in com.launchdarkly.sdk.internal.events
Class used for event sampling.
Sampler() - Constructor for class com.launchdarkly.sdk.internal.events.Sampler
 
SdkDiagnosticParams(String, String, String, String, LDValue, Map<String, String>, List<LDValue>) - Constructor for class com.launchdarkly.sdk.internal.events.DiagnosticStore.SdkDiagnosticParams
Creates an instance.
sendAnalyticsEvents(byte[], int, URI) - Method in class com.launchdarkly.sdk.internal.events.DefaultEventSender
 
sendAnalyticsEvents(byte[], int, URI) - Method in interface com.launchdarkly.sdk.internal.events.EventSender
Attempt to deliver an analytics event data payload.
sendDiagnosticEvent(byte[], URI) - Method in class com.launchdarkly.sdk.internal.events.DefaultEventSender
 
sendDiagnosticEvent(byte[], URI) - Method in interface com.launchdarkly.sdk.internal.events.EventSender
Attempt to deliver a diagnostic event data payload.
sendEvent(Event) - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
sendEvent(Event) - Method in interface com.launchdarkly.sdk.internal.events.EventProcessor
Enqueues an event.
setInBackground(boolean) - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
setInBackground(boolean) - Method in interface com.launchdarkly.sdk.internal.events.EventProcessor
Tells the event processor whether we should be in background mode.
setOffline(boolean) - Method in class com.launchdarkly.sdk.internal.events.DefaultEventProcessor
 
setOffline(boolean) - Method in interface com.launchdarkly.sdk.internal.events.EventProcessor
Tells the event processor whether we should be in background mode.
shouldSample(long) - Static method in class com.launchdarkly.sdk.internal.events.Sampler
Given a ratio determine if an event should be sampled.
shutdownHttpClient(OkHttpClient) - Static method in class com.launchdarkly.sdk.internal.http.HttpProperties
Attempts to completely shut down an OkHttp client.

T

toDebugEvent() - Method in class com.launchdarkly.sdk.internal.events.Event.FeatureRequest
Creates a debug event with the same properties as this event.
toHeadersBuilder() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns an OkHttp Headers builder initialized with the default headers.
toHttpClientBuilder() - Method in class com.launchdarkly.sdk.internal.http.HttpProperties
Returns an OkHttp client builder initialized with the configured properties.
type - Variable in enum com.launchdarkly.sdk.internal.events.DiagnosticConfigProperty
 

U

updateHeaders(Map<String, String>) - Method in interface com.launchdarkly.sdk.internal.http.HeadersTransformer
Transforms the headers that will be added to a request.

V

valueOf(String) - Static method in enum com.launchdarkly.sdk.internal.events.DiagnosticConfigProperty
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.launchdarkly.sdk.internal.events.DiagnosticConfigProperty
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasNewInvoked() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.InvokedMeasurement
Check if the new method was invoked.
wasOldInvoked() - Method in class com.launchdarkly.sdk.internal.events.Event.MigrationOp.InvokedMeasurement
Check if the old method was invoked.
A C D E F G H I L M N P Q R S T U V W 
Skip navigation links