An in-memory implementation of SubscriptionManager. Used by HAClient.
More...
An in-memory implementation of SubscriptionManager. Used by HAClient.
◆ MemorySubscriptionManager()
AMPS.Client.MemorySubscriptionManager.MemorySubscriptionManager |
( |
| ) |
|
|
inline |
◆ clear()
void AMPS.Client.MemorySubscriptionManager.clear |
( |
| ) |
|
|
inline |
◆ getDefaultResubscriptionTimeout()
static long AMPS.Client.MemorySubscriptionManager.getDefaultResubscriptionTimeout |
( |
| ) |
|
|
inlinestatic |
Gets the default resubscription timeout for all instances of this class in milliseconds.
- Returns
- The default timeout for resubscription calls.
◆ getFailedResubscribeHandler()
◆ getResubscriptionTimeout()
long AMPS.Client.MemorySubscriptionManager.getResubscriptionTimeout |
( |
| ) |
|
|
inline |
Gets the resubscription timeout in milliseconds.
- Returns
- The timeout for resubscription calls.
◆ isExistingSub()
bool AMPS.Client.MemorySubscriptionManager.isExistingSub |
( |
Field |
subId | ) |
|
|
inline |
Checks if a subscription with the specified subscription ID exists.
- Parameters
-
subId | The subscription ID to check. |
- Returns
- True if the subscription exists, otherwise false.
◆ resubscribe()
void AMPS.Client.MemorySubscriptionManager.resubscribe |
( |
Client |
client | ) |
|
|
inline |
Called by the Client after reconneting to resubscribe all subscriptions on the given client.
- Parameters
-
client | The client on which to resubscribe. |
Implements AMPS.Client.SubscriptionManager.
◆ setDefaultResubscriptionTimeout()
static void AMPS.Client.MemorySubscriptionManager.setDefaultResubscriptionTimeout |
( |
long |
timeout | ) |
|
|
inlinestatic |
Sets the default resubscription timeout for all instances of this class in milliseconds.
- Parameters
-
timeout | The default timeout for resubscription calls. |
◆ setFailedResubscribeHandler()
◆ setResubscriptionTimeout()
void AMPS.Client.MemorySubscriptionManager.setResubscriptionTimeout |
( |
long |
timeout | ) |
|
|
inline |
Sets the resubscription timeout in milliseconds.
- Parameters
-
timeout | The timeout for resubscription calls. |
◆ subscribe()
Adds a subscription to be resubscribed with the given handler based on the subscribe Message being sent to the server.
- Parameters
-
messageHandler | The message handler to subscribe. |
message | The message to subscribe to. |
Implements AMPS.Client.SubscriptionManager.
◆ unsubscribe()
void AMPS.Client.MemorySubscriptionManager.unsubscribe |
( |
CommandId |
subId | ) |
|
|
inline |
Removes the subscription with the specified subscription ID so it not get resubscribed in the future.
- Parameters
-
subId | The subscription ID to unsubscribe from. |
Implements AMPS.Client.SubscriptionManager.
The documentation for this class was generated from the following file:
- AMPS.Client/MemorySubscriptionManager.cs