@Deprecated public class InMemorySubscriptionManager extends Object implements SubscriptionManager
Constructor and Description |
---|
InMemorySubscriptionManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubscription(Subscription subscription)
Deprecated.
When adding a subscription first it stores in the registry as as set of property values
then add the subscription details to the topic index
|
List<Subscription> |
getAllSubscriptions()
Deprecated.
Get all the subscriptions.
|
Subscription |
getSubscription(String id)
Deprecated.
Gets the subscription
|
String |
getTopicStoragePath()
Deprecated.
Gets the topic storage path
|
void |
renewSubscription(Subscription subscription)
Deprecated.
Renewing a subscription
|
void |
unSubscribe(String subscriptionID)
Deprecated.
Un-Subscribing to a destination.
|
public void addSubscription(Subscription subscription)
SubscriptionManager
addSubscription
in interface SubscriptionManager
subscription
- the subscription to be addedpublic List<Subscription> getAllSubscriptions()
SubscriptionManager
getAllSubscriptions
in interface SubscriptionManager
public Subscription getSubscription(String id)
SubscriptionManager
getSubscription
in interface SubscriptionManager
id
- the subscription idpublic void unSubscribe(String subscriptionID) throws EventBrokerException
SubscriptionManager
unSubscribe
in interface SubscriptionManager
subscriptionID
- the subscription IDEventBrokerException
public void renewSubscription(Subscription subscription) throws EventBrokerException
SubscriptionManager
renewSubscription
in interface SubscriptionManager
subscription
- the subscriptionEventBrokerException
public String getTopicStoragePath() throws EventBrokerException
SubscriptionManager
getTopicStoragePath
in interface SubscriptionManager
EventBrokerException
Copyright © 2024 WSO2. All rights reserved.