AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
Aws::Iot::RequestResponse::StreamingOperationOptions< T > Class Template Reference

#include <MqttRequestResponseClient.h>

Public Member Functions

StreamingOperationOptionsWithSubscriptionStatusEventHandler (const SubscriptionStatusEventHandler &handler)
StreamingOperationOptionsWithStreamHandler (const std::function< void(T &&)> &handler)
const SubscriptionStatusEventHandlerGetSubscriptionStatusEventHandler () const
const std::function< void(T &&)> & GetStreamHandler () const

Detailed Description

template<typename T>
class Aws::Iot::RequestResponse::StreamingOperationOptions< T >

Generic configuration options for streaming operations

Template Parameters
Tmodeled message type emitted/handled by a particular stream

Member Function Documentation

◆ GetStreamHandler()

template<typename T>
const std::function< void(T &&)> & Aws::Iot::RequestResponse::StreamingOperationOptions< T >::GetStreamHandler ( ) const
inline

Gets the handler function a streaming operation will use for the modeled message type.

Returns
the handler function a streaming operation will use for the modeled message type

◆ GetSubscriptionStatusEventHandler()

template<typename T>
const SubscriptionStatusEventHandler & Aws::Iot::RequestResponse::StreamingOperationOptions< T >::GetSubscriptionStatusEventHandler ( ) const
inline

Gets the handler function a streaming operation will use for subscription status events.

Returns
the handler function a streaming operation will use for subscription status events

◆ WithStreamHandler()

template<typename T>
StreamingOperationOptions & Aws::Iot::RequestResponse::StreamingOperationOptions< T >::WithStreamHandler ( const std::function< void(T &&)> & handler)
inline

Sets the handler function a streaming operation will use for the modeled message type.

Parameters
handlerthe handler function a streaming operation will use for the modeled message type
Returns
reference to this

◆ WithSubscriptionStatusEventHandler()

template<typename T>
StreamingOperationOptions & Aws::Iot::RequestResponse::StreamingOperationOptions< T >::WithSubscriptionStatusEventHandler ( const SubscriptionStatusEventHandler & handler)
inline

Sets the handler function a streaming operation will use for subscription status events.

Parameters
handlerthe handler function a streaming operation will use for subscription status events
Returns
reference to this

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