AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
Aws::Iot::RequestResponse::IMqttRequestResponseClient Class Referenceabstract

#include <MqttRequestResponseClient.h>

Inheritance diagram for Aws::Iot::RequestResponse::IMqttRequestResponseClient:
Aws::Iot::RequestResponse::MqttRequestResponseClient

Public Member Functions

virtual ~IMqttRequestResponseClient ()=default
virtual int SubmitRequest (const aws_mqtt_request_operation_options &requestOptions, UnmodeledResultHandler &&resultHandler)=0
virtual std::shared_ptr< IStreamingOperationCreateStream (const StreamingOperationOptionsInternal &options)=0

Detailed Description

Generic interface for the request-response client

Constructor & Destructor Documentation

◆ ~IMqttRequestResponseClient()

virtual Aws::Iot::RequestResponse::IMqttRequestResponseClient::~IMqttRequestResponseClient ( )
virtualdefault

There is no close operation for the client. When the destructor is invoked, the underlying client will be closed.

Member Function Documentation

◆ CreateStream()

virtual std::shared_ptr< IStreamingOperation > Aws::Iot::RequestResponse::IMqttRequestResponseClient::CreateStream ( const StreamingOperationOptionsInternal & options)
pure virtual

Creates a new streaming operation. Streaming operations "listen" to a specific kind of service event and invoke handlers every time one is received.

Parameters
optionsconfiguration options for the streaming operation to construct
Returns

Implemented in Aws::Iot::RequestResponse::MqttRequestResponseClient.

◆ SubmitRequest()

virtual int Aws::Iot::RequestResponse::IMqttRequestResponseClient::SubmitRequest ( const aws_mqtt_request_operation_options & requestOptions,
UnmodeledResultHandler && resultHandler )
pure virtual

Submits a generic request to the request-response client.

Parameters
requestOptionsdescription of the request the client should perform
resultHandlerfunction object to invoke when the request is completed
Returns
success (AWS_OP_SUCCESS) or failure (AWS_OP_ERR)

Implemented in Aws::Iot::RequestResponse::MqttRequestResponseClient.


The documentation for this class was generated from the following file: