A SubscriptionManager implementation that maintains subscriptions placed in memory so that they can be placed again after a reconnect.
More...
#include <MemorySubscriptionManager.hpp>
A SubscriptionManager implementation that maintains subscriptions placed in memory so that they can be placed again after a reconnect.
static int AMPS::MemorySubscriptionManager::getDefaultResubscriptionTimeout |
( |
void |
| ) |
|
|
inlinestatic |
Gets the default timeout used by new MemorySubscriptionManager objects when trying to resubscribe after disconnect.
- Returns
- The timeout used in milliseconds.
int AMPS::MemorySubscriptionManager::getResubscriptionTimeout |
( |
void |
| ) |
|
|
inline |
Gets the timeout used when trying to resubscribe after disconnect.
- Returns
- The timeout used in milliseconds.
void AMPS::MemorySubscriptionManager::resubscribe |
( |
Client & |
client_ | ) |
|
|
inlinevirtual |
static int AMPS::MemorySubscriptionManager::setDefaultResubscriptionTimeout |
( |
int |
timeout_ | ) |
|
|
inlinestatic |
Sets the default timeout used by new MemorySubscriptionManager objects when trying to resubscribe after disconnect.
- Parameters
-
timeout_ | The timeout to use in milliseconds. |
void AMPS::MemorySubscriptionManager::setResubscriptionTimeout |
( |
int |
timeout_ | ) |
|
|
inline |
Sets the timeout used when trying to resubscribe after disconnect.
- Parameters
-
timeout_ | The timeout to use in milliseconds. |
void AMPS::MemorySubscriptionManager::subscribe |
( |
MessageHandler |
messageHandler_, |
|
|
const Message & |
message_, |
|
|
unsigned |
requestedAckTypes_ |
|
) |
| |
|
inlinevirtual |
Save a subscription so it can be placed again if a disconnect occurs.
Generally used only internally by Client when subscriptions are placed.
- Parameters
-
messageHandler_ | The MessageHandler used for the subscription. |
message_ | The Message containing the subscription to reissue. |
requestedAckTypes_ | The ack types requested for the handler. |
Implements AMPS::SubscriptionManager.
void AMPS::MemorySubscriptionManager::unsubscribe |
( |
const Message::Field & |
subId_ | ) |
|
|
inlinevirtual |
Remove the subscription from the manager.
- Parameters
-
subId_ | The subscription ID of the subscription to remove. |
Implements AMPS::SubscriptionManager.
The documentation for this class was generated from the following file: