C++ Client-Side SDK
LaunchDarkly SDK
|
#include <data_source_status.hpp>
Public Member Functions | |
virtual DataSourceStatus | Status () const =0 |
virtual std::unique_ptr< IConnection > | OnDataSourceStatusChange (std::function< void(data_sources::DataSourceStatus status)> handler)=0 |
virtual std::unique_ptr< IConnection > | OnDataSourceStatusChangeEx (std::function< bool(data_sources::DataSourceStatus status)> handler)=0 |
IDataSourceStatusProvider (IDataSourceStatusProvider const &item)=delete | |
IDataSourceStatusProvider (IDataSourceStatusProvider &&item)=delete | |
IDataSourceStatusProvider & | operator= (IDataSourceStatusProvider const &)=delete |
IDataSourceStatusProvider & | operator= (IDataSourceStatusProvider &&)=delete |
Interface for accessing and listening to the data source status.
|
pure virtual |
Listen to changes to the data source status.
handler | Function which will be called with the new status. |
|
pure virtual |
Listen to changes to the data source status, with ability for listener to unregister itself.
handler | Function which will be called with the new status. Return true to unregister. |
|
pure virtual |
The current status of the data source. Suitable for broadcast to data source status listeners.