aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <MqttRequestResponseClient.h>
Public Member Functions | |
RequestResponseClientOptions & | WithMaxRequestResponseSubscriptions (uint32_t maxRequestResponseSubscriptions) |
RequestResponseClientOptions & | WithMaxStreamingSubscriptions (uint32_t maxStreamingSubscriptions) |
RequestResponseClientOptions & | WithOperationTimeoutInSeconds (uint32_t operationTimeoutInSeconds) |
uint32_t | GetMaxRequestResponseSubscriptions () const |
uint32_t | GetMaxStreamingSubscriptions () const |
uint32_t | GetOperationTimeoutInSeconds () const |
MQTT-based request-response client configuration options
|
inline |
Gets the maximum number of request-response subscriptions the client allows to be concurrently active.
|
inline |
Gets the maximum number of concurrent streaming operation subscriptions that the client will allow.
|
inline |
Gets the timeout value, in seconds, for a request-response operation.
|
inline |
Sets the maximum number of request-response subscriptions the client allows to be concurrently active at any one point in time. When the client hits this threshold, requests will be delayed until earlier requests complete and release their subscriptions. Each in-progress request will use either 1 or 2 MQTT subscriptions until completion.
maxRequestResponseSubscriptions | maximum number of concurrent subscriptions that the client will use for request-response operations |
|
inline |
Sets the maximum number of concurrent streaming operation subscriptions that the client will allow. Each "unique" (different topic filter) streaming operation will use 1 MQTT subscription. When the client hits this threshold, attempts to open new streaming operations will fail.
maxStreamingSubscriptions | maximum number of current subscriptions that the client will use for streaming operations |
|
inline |
Sets the timeout value, in seconds, for a request-response operation. If a request is not complete by this time interval, the client will complete it as failed. This time interval starts the instant the request is submitted to the client.
operationTimeoutInSeconds | request timeout in seconds |