16 #ifndef ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETTINGEVENTSENDER_H_ 17 #define ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETTINGEVENTSENDER_H_ 19 #include <condition_variable> 49 static std::unique_ptr<SettingEventSender>
create(
51 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender,
52 const std::vector<int>& retryTable = getDefaultRetryTable());
77 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> messageSender,
78 const std::vector<int>& retryTable);
86 std::shared_future<bool> sendEvent(
const std::string& eventJson);
102 static const std::vector<int>& getDefaultRetryTable();
108 std::shared_ptr<avsCommon::sdkInterfaces::MessageSenderInterface> m_messageSender;
111 std::mutex m_sendMutex;
120 const std::size_t m_maxRetries;
125 #endif // ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETTINGEVENTSENDER_H_
static std::unique_ptr< SettingEventSender > create(const SettingEventMetadata &metadata, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender, const std::vector< int > &retryTable=getDefaultRetryTable())
::std::string string
Definition: gtest-port.h:1097
Definition: WaitEvent.h:32
std::shared_future< bool > sendChangedEvent(const std::string &value) override
std::shared_future< bool > sendStateReportEvent(const std::string &payload) override
Definition: SettingEventSenderInterface.h:29
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: SettingEventSender.h:40
std::shared_future< bool > sendReportEvent(const std::string &value) override
Definition: RetryTimer.h:30