AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.3.1
|
Abstract base class to manage all subscriptions placed on a client so that they can be re-established if the client is disconnected and then reconnected. More...
#include <ampsplusplus.hpp>
Public Member Functions | |
virtual void | subscribe (MessageHandler messageHandler_, const Message &message_, unsigned requestedAckTypes_)=0 |
Called by Client when a subscription is placed. More... | |
virtual void | unsubscribe (const Message::Field &subId_)=0 |
Called by Client when a subscription is unsubscribed. More... | |
virtual void | clear ()=0 |
Clear subscriptions and reset to the initial state. | |
virtual void | resubscribe (Client &client_)=0 |
Called by Client to get all subscriptions placed again. More... | |
Abstract base class to manage all subscriptions placed on a client so that they can be re-established if the client is disconnected and then reconnected.
|
pure virtual |
Called by Client to get all subscriptions placed again.
client_ | The Client on which to place all subscriptions. |
Implemented in AMPS::MemorySubscriptionManager.
|
pure virtual |
Called by Client when a subscription is placed.
Not all parameters are appropriate for all subscriptions, so the operation type determines which ones are required and/or useful.
messageHandler_ | The MessageHandler for the subscription. |
message_ | The Message containing the subscription to reissue. |
requestedAckTypes_ | The ack types requested for the handler. |
Implemented in AMPS::MemorySubscriptionManager.
|
pure virtual |
Called by Client when a subscription is unsubscribed.
subId_ | The identifier of the subscription being unsubscribed. |
Implemented in AMPS::MemorySubscriptionManager.