Interface IEventProcessor
Interface for an object that can send or store analytics events.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public interface IEventProcessor : IDisposable
Remarks
Application code normally does not need to interact with IEventProcessor or its related parameter types. They are provided to allow a custom implementation or test fixture to be substituted for the SDK's normal analytics event logic.
All of the Record
methods must return as soon as possible without waiting for events to be
delivered; event delivery is done asynchronously by a background task.
Methods
| Edit this page View SourceFlush()
Specifies that any buffered events should be sent as soon as possible, rather than waiting for the next flush interval.
Declaration
void Flush()
See Also
FlushAndWait(TimeSpan)
Specifies that any buffered events should be sent synchronously now.
Declaration
bool FlushAndWait(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout |
Returns
Type | Description |
---|---|
bool |
See Also
| Edit this page View SourceRecordCustomEvent(CustomEvent)
Records a custom event.
Declaration
void RecordCustomEvent(EventProcessorTypes.CustomEvent e)
Parameters
Type | Name | Description |
---|---|---|
EventProcessorTypes.CustomEvent | e | parameters for a custom event |
RecordEvaluationEvent(EvaluationEvent)
Records the action of evaluating a feature flag.
Declaration
void RecordEvaluationEvent(EventProcessorTypes.EvaluationEvent e)
Parameters
Type | Name | Description |
---|---|---|
EventProcessorTypes.EvaluationEvent | e | parameters for an evaluation event |
Remarks
Depending on the feature flag properties and event properties, this may be transmitted to the events service as an individual event, or may only be added into summary data.
RecordIdentifyEvent(IdentifyEvent)
Records a set of user properties.
Declaration
void RecordIdentifyEvent(EventProcessorTypes.IdentifyEvent e)
Parameters
Type | Name | Description |
---|---|---|
EventProcessorTypes.IdentifyEvent | e | parameters for an identify event |
RecordMigrationEvent(MigrationOpEvent)
Records a migration operation evnet.
Declaration
void RecordMigrationEvent(EventProcessorTypes.MigrationOpEvent e)
Parameters
Type | Name | Description |
---|---|---|
EventProcessorTypes.MigrationOpEvent | e | parameters for a migration op event |