AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Functions | Variables
alexaClientSDK::synchronizeStateSender Namespace Reference

Namespaces

 test
 

Classes

class  PostConnectSynchronizeStateSender
 
class  SynchronizeStateSenderFactory
 

Functions

static const std::string TAG ("PostConnectSynchronizeStateSender")
 String to identify log entries originating from this file. More...
 
static void submitMetric (const std::shared_ptr< MetricRecorderInterface > &metricRecorder, const std::string &eventName, const std::string &reason)
 
static const std::string TAG ("SynchronizeStateSenderFactory")
 String to identify log entries originating from this file. More...
 

Variables

static const std::string SYNCHRONIZE_STATE_NAMESPACE = "System"
 The namespace for the SynchronizeState event. More...
 
static const std::string SYNCHRONIZE_STATE_NAME = "SynchronizeState"
 The name of the SynchronizeState event. More...
 
static const std::string METRIC_ACTIVITY_NAME_PREFIX = "POSTCONNECT_SYNCHRONIZE_STATE_SENDER-"
 Metric Activity Name Prefix for PostConnectSynchronizeStateSender metric source. More...
 
static const std::vector< int > RETRY_TABLE
 Table with the retry times on subsequent retries. More...
 
static avsCommon::utils::RetryTimer RETRY_TIMER {RETRY_TABLE}
 The instance of the RetryTimer used to calculate retry backoff times. More...
 
std::chrono::milliseconds CONTEXT_FETCH_TIMEOUT = std::chrono::milliseconds(2000)
 Timeout value for ContextManager to return the context. More...
 

Function Documentation

◆ submitMetric()

static void alexaClientSDK::synchronizeStateSender::submitMetric ( const std::shared_ptr< MetricRecorderInterface > &  metricRecorder,
const std::string &  eventName,
const std::string &  reason 
)
static

Handles a Metric event by creating and recording it. Failure to create or record the event results in an early return.

Parameters
metricRecorderThe MetricRecorderInterface which records Metric events.
eventNameThe activity name of the Metric event.
reasonAdditional information on cause of Metric event.

◆ TAG() [1/2]

static const std::string alexaClientSDK::synchronizeStateSender::TAG ( "SynchronizeStateSenderFactory"  )
static

String to identify log entries originating from this file.

◆ TAG() [2/2]

static const std::string alexaClientSDK::synchronizeStateSender::TAG ( "PostConnectSynchronizeStateSender"  )
static

String to identify log entries originating from this file.

Variable Documentation

◆ CONTEXT_FETCH_TIMEOUT

std::chrono::milliseconds alexaClientSDK::synchronizeStateSender::CONTEXT_FETCH_TIMEOUT = std::chrono::milliseconds(2000)

Timeout value for ContextManager to return the context.

◆ METRIC_ACTIVITY_NAME_PREFIX

const std::string alexaClientSDK::synchronizeStateSender::METRIC_ACTIVITY_NAME_PREFIX = "POSTCONNECT_SYNCHRONIZE_STATE_SENDER-"
static

Metric Activity Name Prefix for PostConnectSynchronizeStateSender metric source.

◆ RETRY_TABLE

const std::vector<int> alexaClientSDK::synchronizeStateSender::RETRY_TABLE
static
Initial value:
= {
250,
1000,
2000,
4000,
8000,
16000,
32000,
64000,
128000,
256000
}

Table with the retry times on subsequent retries.

◆ RETRY_TIMER

avsCommon::utils::RetryTimer alexaClientSDK::synchronizeStateSender::RETRY_TIMER {RETRY_TABLE}
static

The instance of the RetryTimer used to calculate retry backoff times.

◆ SYNCHRONIZE_STATE_NAME

const std::string alexaClientSDK::synchronizeStateSender::SYNCHRONIZE_STATE_NAME = "SynchronizeState"
static

The name of the SynchronizeState event.

◆ SYNCHRONIZE_STATE_NAMESPACE

const std::string alexaClientSDK::synchronizeStateSender::SYNCHRONIZE_STATE_NAMESPACE = "System"
static

The namespace for the SynchronizeState event.

AlexaClientSDK 1.25.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0