AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.4
|
Abstract base class for connection state listeners. More...
#include <ampsplusplus.hpp>
Inherited by AMPS::ClientImpl::FlushAckHandler [private]
, and AMPS::MessageStreamImpl [private]
.
Public Types |
Public Member Functions | |
virtual void | connectionStateChanged (State newState_)=0 |
Pure virtual method for receiving the change in connection state. More... | |
Abstract base class for connection state listeners.
To implement a connection state listener, derive from this class and implement the connectionStateChanged method.
|
pure virtual |
Pure virtual method for receiving the change in connection state.
Override this in a derived class to receive notification of changes in connection state. Notice that this method is called as soon as the client detects the change of state. This means that, for example, when the method is called because the client is connected, the client has not yet logged on or completed any recovery (such as replaying the publish store, re-entering subscriptions, and so on). The listener should not issue commands on the client while recovery is in progress.