Class EventsConfiguration


  • public final class EventsConfiguration
    extends java.lang.Object
    Internal representation of the configuration properties for DefaultEventProcessor. This class is not exposed in the public SDK API.
    • Constructor Summary

      Constructors 
      Constructor Description
      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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_EVENT_SENDING_THREAD_POOL_SIZE

        public static final int DEFAULT_EVENT_SENDING_THREAD_POOL_SIZE
        Default number of event-sending worker threads.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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