#include <MessageRouterTest.h>
|
| TestableMessageRouter (std::shared_ptr< avsCommon::sdkInterfaces::AuthDelegateInterface > authDelegate, std::shared_ptr< AttachmentManagerInterface > attachmentManager, std::shared_ptr< TransportFactoryInterface > factory, const std::string &avsGateway) |
|
bool | isExecutorReady (std::chrono::milliseconds millisecondsToWait) |
|
bool | isExecutorActive () |
|
| MessageRouter (std::shared_ptr< avsCommon::sdkInterfaces::AuthDelegateInterface > authDelegate, std::shared_ptr< avsCommon::avs::attachment::AttachmentManagerInterface > attachmentManager, std::shared_ptr< TransportFactoryInterface > transportFactory, const std::string &avsGateway="", int engineType=avsCommon::sdkInterfaces::ENGINE_TYPE_ALEXA_VOICE_SERVICES, std::chrono::milliseconds serverSideDisconnectGracePeriod=DEFAULT_SERVER_SIDE_DISCONNECT_GRACE_PERIOD) |
|
void | onConnected (std::shared_ptr< TransportInterface > transport) override |
|
void | onDisconnected (std::shared_ptr< TransportInterface > transport, avsCommon::sdkInterfaces::ConnectionStatusObserverInterface::ChangedReason reason) override |
|
void | onServerSideDisconnect (std::shared_ptr< TransportInterface > transport) override |
|
void | consumeMessage (const std::string &contextId, const std::string &message) override |
|
void | doShutdown () override |
|
void | enable () override |
|
void | disable () override |
|
ConnectionStatus | getConnectionStatus () override |
|
void | sendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request) override |
|
void | setAVSGateway (const std::string &avsGateway) override |
|
std::string | getAVSGateway () override |
|
void | onWakeConnectionRetry () override |
|
void | onWakeVerifyConnectivity () override |
|
void | setObserver (std::shared_ptr< MessageRouterObserverInterface > observer) override |
|
| MessageRouterInterface (const std::string &name) |
|
virtual | ~MessageRouterInterface ()=default |
|
virtual | ~MessageSenderInterface ()=default |
| Destructor. More...
|
|
virtual void | sendMessage (std::shared_ptr< avs::MessageRequest > request)=0 |
|
| RequiresShutdown (const std::string &name) |
|
virtual | ~RequiresShutdown () |
| Destructor. More...
|
|
const std::string & | name () const |
|
void | shutdown () |
|
bool | isShutdown () const |
|
virtual | ~TransportObserverInterface ()=default |
|
virtual | ~MessageConsumerInterface ()=default |
|
◆ TestableMessageRouter()
◆ isExecutorActive()
bool alexaClientSDK::acl::test::TestableMessageRouter::isExecutorActive |
( |
| ) |
|
|
inline |
◆ isExecutorReady()
bool alexaClientSDK::acl::test::TestableMessageRouter::isExecutorReady |
( |
std::chrono::milliseconds |
millisecondsToWait | ) |
|
|
inline |
Check if the underlying executor is in ready state within a given wait time.
- Parameters
-
time | to wait up to specified milliseconds. |
- Returns
- Whether the underlying executor is ready or not.
◆ SHORT_SERVER_SIDE_DISCONNECT_GRACE_PERIOD
const std::chrono::milliseconds alexaClientSDK::acl::test::TestableMessageRouter::SHORT_SERVER_SIDE_DISCONNECT_GRACE_PERIOD |
|
static |
Short amount of time to allow for an automatic reconnect before notifying of a server side disconnect.
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0