client-cpp  0.10.0
kaa::EventTransport Class Reference

#include <EventTransport.hpp>

+ Inheritance diagram for kaa::EventTransport:
+ Collaboration diagram for kaa::EventTransport:

Public Member Functions

 EventTransport (IEventDataProcessor &eventManager, IKaaChannelManager &channelManager, IKaaClientContext &context)
 
std::shared_ptr< EventSyncRequest > createEventRequest (std::int32_t requestId)
 
void onEventResponse (const EventSyncResponse &response)
 
void onSyncResponseId (std::int32_t requestId)
 
void sync ()
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::EVENT >
virtual ~AbstractKaaTransport ()
 
 AbstractKaaTransport (IKaaChannelManager &channelManager, IKaaClientContext &context)
 
- Public Member Functions inherited from kaa::IKaaTransport
virtual ~IKaaTransport ()
 
- Public Member Functions inherited from kaa::IEventTransport
virtual ~IEventTransport ()
 

Additional Inherited Members

- Protected Member Functions inherited from kaa::AbstractKaaTransport< TransportType::EVENT >
void syncByType (TransportType transportType=Type)
 
void syncAll ()
 
void syncAck (TransportType transportType=Type)
 
- Protected Attributes inherited from kaa::AbstractKaaTransport< TransportType::EVENT >
const TransportType type_
 
IKaaChannelManagerchannelManager_
 
IKaaClientContextcontext_
 

Detailed Description

Definition at line 33 of file EventTransport.hpp.

Constructor & Destructor Documentation

kaa::EventTransport::EventTransport ( IEventDataProcessor eventManager,
IKaaChannelManager channelManager,
IKaaClientContext context 
)

Member Function Documentation

std::shared_ptr<EventSyncRequest> kaa::EventTransport::createEventRequest ( std::int32_t  requestId)
virtual

Creates the Event request.

Returns
new Event request.
See Also
EventSyncRequest

Implements kaa::IEventTransport.

void kaa::EventTransport::onEventResponse ( const EventSyncResponse &  response)
virtual

Updates the state of the Event manager according to the given response.

Parameters
responsethe response from the server.
See Also
EventSyncResponse

Implements kaa::IEventTransport.

void kaa::EventTransport::onSyncResponseId ( std::int32_t  requestId)
virtual

Implements kaa::IEventTransport.

void kaa::EventTransport::sync ( )
virtual

Sets the specific IKaaChannelManager for the current transport.

Parameters
channelManagermanager to be set.

Implements kaa::IKaaTransport.


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