aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Public Member Functions | List of all members
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

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
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
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
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: