AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Eventstreamrpc::StreamResponseHandler Class Reference

#include <EventStreamClient.h>

Inheritance diagram for Aws::Eventstreamrpc::StreamResponseHandler:
Aws::Greengrass::SubscribeToCertificateUpdatesStreamHandler Aws::Greengrass::SubscribeToComponentUpdatesStreamHandler Aws::Greengrass::SubscribeToConfigurationUpdateStreamHandler Aws::Greengrass::SubscribeToIoTCoreStreamHandler Aws::Greengrass::SubscribeToTopicStreamHandler Aws::Greengrass::SubscribeToValidateConfigurationUpdatesStreamHandler

Public Member Functions

virtual ~StreamResponseHandler () noexcept=default
 
virtual void OnStreamClosed ()
 

Protected Member Functions

virtual void OnStreamEvent (Crt::ScopedResource< AbstractShapeBase > response)
 
virtual bool OnStreamError (Crt::ScopedResource< OperationError > operationError, RpcError rpcError)
 

Friends

class ClientOperation
 

Detailed Description

Base class for all operation stream handlers. For operations with a streaming response (0+ messages that may arrive after the initial response).

Constructor & Destructor Documentation

◆ ~StreamResponseHandler()

virtual Aws::Eventstreamrpc::StreamResponseHandler::~StreamResponseHandler ( )
virtualdefaultnoexcept

Member Function Documentation

◆ OnStreamClosed()

void Aws::Eventstreamrpc::StreamResponseHandler::OnStreamClosed ( )
virtual

Invoked when stream is closed, so no more messages will be received.

◆ OnStreamError()

bool Aws::Eventstreamrpc::StreamResponseHandler::OnStreamError ( Crt::ScopedResource< OperationError operationError,
RpcError  rpcError 
)
protectedvirtual

Invoked when a message is received on this continuation but results in an error.

This callback can return true so that the stream is closed afterwards.

◆ OnStreamEvent()

void Aws::Eventstreamrpc::StreamResponseHandler::OnStreamEvent ( Crt::ScopedResource< AbstractShapeBase response)
protectedvirtual

Invoked when a message is received on this continuation.

Friends And Related Function Documentation

◆ ClientOperation

friend class ClientOperation
friend

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