Class EventProcessorBuilder

java.lang.Object
com.launchdarkly.sdk.server.integrations.EventProcessorBuilder
All Implemented Interfaces:
EventProcessorFactory

public abstract class EventProcessorBuilder
extends java.lang.Object
implements EventProcessorFactory
Contains methods for configuring delivery of analytics events.

The SDK normally buffers analytics events and sends them to LaunchDarkly at intervals. If you want to customize this behavior, create a builder with Components.sendEvents(), change its properties with the methods of this class, and pass it to LDConfig.Builder.events(EventProcessorFactory):


     LDConfig config = new LDConfig.Builder()
         .events(Components.sendEvents().capacity(5000).flushIntervalSeconds(2))
         .build();
 

Note that this class is abstract; the actual implementation is created by calling Components.sendEvents().

Since:
4.12.0