|
C++ Server-Side SDK
LaunchDarkly SDK
|
#include <ifdv2_synchronizer.hpp>

Public Member Functions | |
| virtual async::Future< FDv2SourceResult > | Next (data_model::Selector selector)=0 |
| virtual void | Close ()=0 |
| virtual std::string const & | Identity () const =0 |
| IFDv2Synchronizer (IFDv2Synchronizer const &)=delete | |
| IFDv2Synchronizer (IFDv2Synchronizer &&)=delete | |
| IFDv2Synchronizer & | operator= (IFDv2Synchronizer const &)=delete |
| IFDv2Synchronizer & | operator= (IFDv2Synchronizer &&)=delete |
Defines a continuous data source that produces a stream of results. Used during the synchronization phase of FDv2, after initialization is complete.
The stream is started lazily on the first call to Next(). The synchronizer runs until Close() is called.
|
pure virtual |
Unblocks any in-progress Next() call, causing it to return FDv2SourceResult::Shutdown, and releases underlying resources.
Implemented in launchdarkly::server_side::data_systems::FDv2StreamingSynchronizer, launchdarkly::server_side::data_systems::FDv2PollingSynchronizer, and launchdarkly::server_side::data_systems::FDv1AdapterSynchronizer.
|
pure virtual |
Implemented in launchdarkly::server_side::data_systems::FDv2StreamingSynchronizer, launchdarkly::server_side::data_systems::FDv2PollingSynchronizer, and launchdarkly::server_side::data_systems::FDv1AdapterSynchronizer.
|
pure virtual |
Returns a Future that resolves with the next result once it is available.
On the first call, the synchronizer starts its underlying connection. Subsequent calls continue reading from the same connection.
Close() may be called from another thread to unblock Next(), in which case the future resolves with FDv2SourceResult::Shutdown.
| selector | The selector to send with the request, reflecting any changesets applied since the previous call. |
Implemented in launchdarkly::server_side::data_systems::FDv2StreamingSynchronizer, launchdarkly::server_side::data_systems::FDv2PollingSynchronizer, and launchdarkly::server_side::data_systems::FDv1AdapterSynchronizer.