C++ Server-Side SDK
LaunchDarkly SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
launchdarkly::server_side::PrereqEventRecorder Class Referencefinal

#include <prereq_event_recorder.hpp>

Inheritance diagram for launchdarkly::server_side::PrereqEventRecorder:
Inheritance graph
[legend]
Collaboration diagram for launchdarkly::server_side::PrereqEventRecorder:
Collaboration graph
[legend]

Public Member Functions

 PrereqEventRecorder (std::string flag_key)
 
void SendAsync (events::InputEvent event) override
 
void FlushAsync () override
 
void ShutdownAsync () override
 
std::vector< std::string > const & Prerequisites () const
 
std::vector< std::string > && TakePrerequisites () &&
 

Detailed Description

This class is meant only to record direct prerequisites of a flag. That is, although it will be passed events for all prerequisites seen during an evaluation via SendAsync, it will only store those that are a direct prerequisite of the parent flag passed in the constructor.

As a future improvement, it would be possible to unify the EventScope mechanism currently used by the Evaluator to send events with a class similar to this one, or to refactor the Evaluator to include prerequisite information in the returned EvaluationDetail (or a new Result class, which would be a composite of the EvaluationDetail and a vector of prerequisites.)


The documentation for this class was generated from the following files: