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>
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.
virtual void AMPS::SubscriptionManager::resubscribe |
( |
Client & |
client_ | ) |
|
|
pure virtual |
virtual void AMPS::SubscriptionManager::setFailedResubscribeHandler |
( |
std::shared_ptr< FailedResubscribeHandler > |
handler_ | ) |
|
|
inlinevirtual |
Set a handler to deal with failing subscriptions after a failover event.
- Parameters
-
handler_ | The handler on which to call failure . |
virtual void AMPS::SubscriptionManager::subscribe |
( |
MessageHandler |
messageHandler_, |
|
|
const Message & |
message_, |
|
|
unsigned |
requestedAckTypes_ |
|
) |
| |
|
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.
- Parameters
-
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.
virtual void AMPS::SubscriptionManager::unsubscribe |
( |
const Message::Field & |
subId_ | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: