@Deprecated public class RegistrySubscriptionManager extends Object implements SubscriptionManager
Constructor and Description |
---|
RegistrySubscriptionManager(String topicStoragePath,
String indexStoragePath)
Deprecated.
Adds topic storage path and index storage path to user registry.
|
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 RegistrySubscriptionManager(String topicStoragePath, String indexStoragePath) throws EventBrokerConfigurationException
topicStoragePath
- topic storage path. the path where topics will be stored.indexStoragePath
- index storage path.EventBrokerConfigurationException
public void addSubscription(Subscription subscription) throws EventBrokerException
addSubscription
in interface SubscriptionManager
subscription
- the subscription to be addedEventBrokerException
public List<Subscription> getAllSubscriptions() throws EventBrokerException
getAllSubscriptions
in interface SubscriptionManager
EventBrokerException
public Subscription getSubscription(String id) throws EventBrokerException
getSubscription
in interface SubscriptionManager
id
- the subscription idEventBrokerException
public void renewSubscription(Subscription subscription) throws EventBrokerException
renewSubscription
in interface SubscriptionManager
subscription
- the subscriptionEventBrokerException
public void unSubscribe(String subscriptionID) throws EventBrokerException
unSubscribe
in interface SubscriptionManager
subscriptionID
- the subscription IDEventBrokerException
public String getTopicStoragePath() throws EventBrokerException
getTopicStoragePath
in interface SubscriptionManager
EventBrokerException
Copyright © 2021 WSO2. All rights reserved.