EventsConfiguration
public EventsConfiguration(boolean allAttributesPrivate,
int capacity,
EventContextDeduplicator contextDeduplicator,
long diagnosticRecordingIntervalMillis,
DiagnosticStore diagnosticStore,
EventSender eventSender,
int eventSendingThreadPoolSize,
java.net.URI eventsUri,
long flushIntervalMillis,
boolean initiallyInBackground,
boolean initiallyOffline,
java.util.Collection<com.launchdarkly.sdk.AttributeRef> privateAttributes)
Creates an instance.
- Parameters:
allAttributesPrivate
- true if all attributes are private
capacity
- event buffer capacity (if zero or negative, a value of 1 is used to prevent errors)
contextDeduplicator
- optional EventContextDeduplicator; null for client-side SDK
diagnosticRecordingIntervalMillis
- diagnostic recording interval
diagnosticStore
- optional DiagnosticStore; null if diagnostics are disabled
eventSender
- event delivery component; must not be null
eventSendingThreadPoolSize
- number of worker threads for event delivery; zero to use the default
eventsUri
- events base URI
flushIntervalMillis
- event flush interval
initiallyInBackground
- true if we should start out in background mode (see
DefaultEventProcessor.setInBackground(boolean)
)
initiallyOffline
- true if we should start out in offline mode (see
DefaultEventProcessor.setOffline(boolean)
)
privateAttributes
- list of private attribute references; may be null