client-cpp  0.10.0
kaa::KaaClientStateListener Class Reference

Notifies about Kaa client state changes and errors. More...

#include <KaaClientStateListener.hpp>

Public Member Functions

virtual void onStarted ()
 On successful start of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready for usage. More...
 
virtual void onStartFailure (const KaaException &exception)
 On failure during Kaa client startup. Typically failure is related to network issues. More...
 
virtual void onPaused ()
 On successful pause of Kaa client. Kaa client is successfully paused and does not consume any resources now. More...
 
virtual void onPauseFailure (const KaaException &exception)
 On failure during Kaa client pause. Typically related to failure to free some resources. More...
 
virtual void onResumed ()
 On successful resume of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready for usage. More...
 
virtual void onResumeFailure (const KaaException &exception)
 On failure during Kaa client resume. Typically failure is related to network issues. More...
 
virtual void onStopped ()
 On successful stop of Kaa client. Kaa client is successfully stopped and does not consume any resources now. More...
 
virtual void onStopFailure (const KaaException &exception)
 On failure during Kaa client stop. Typically related to failure to free some resources. More...
 
virtual void onConnectionEstablished (const EndpointConnectionInfo &connection)
 
virtual ~KaaClientStateListener ()=default
 

Detailed Description

Notifies about Kaa client state changes and errors.

Author
Denis Kimcherenko

Definition at line 34 of file KaaClientStateListener.hpp.

Constructor & Destructor Documentation

virtual kaa::KaaClientStateListener::~KaaClientStateListener ( )
virtualdefault

Member Function Documentation

virtual void kaa::KaaClientStateListener::onConnectionEstablished ( const EndpointConnectionInfo connection)
inlinevirtual

On connection established. The method is called as soon as the connection with either bootstrap or operation server is established.

Parameters
[in]connectionThe connection metadata, see EndpointConnectionInfo.

Definition at line 96 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onPaused ( )
inlinevirtual

On successful pause of Kaa client. Kaa client is successfully paused and does not consume any resources now.

Definition at line 54 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onPauseFailure ( const KaaException exception)
inlinevirtual

On failure during Kaa client pause. Typically related to failure to free some resources.

Parameters
exceptioncause of failure

Definition at line 61 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onResumed ( )
inlinevirtual

On successful resume of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready for usage.

Definition at line 67 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onResumeFailure ( const KaaException exception)
inlinevirtual

On failure during Kaa client resume. Typically failure is related to network issues.

Parameters
exceptioncause of failure

Definition at line 74 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onStarted ( )
inlinevirtual

On successful start of Kaa client. Kaa client is successfully connected to Kaa cluster and is ready for usage.

Definition at line 41 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onStartFailure ( const KaaException exception)
inlinevirtual

On failure during Kaa client startup. Typically failure is related to network issues.

Parameters
exceptioncause of failure

Definition at line 48 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onStopFailure ( const KaaException exception)
inlinevirtual

On failure during Kaa client stop. Typically related to failure to free some resources.

Parameters
exceptioncause of failure

Definition at line 87 of file KaaClientStateListener.hpp.

virtual void kaa::KaaClientStateListener::onStopped ( )
inlinevirtual

On successful stop of Kaa client. Kaa client is successfully stopped and does not consume any resources now.

Definition at line 80 of file KaaClientStateListener.hpp.


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