public class RegistrySubscriptionManager extends Object implements SubscriptionManager
| Constructor and Description |
|---|
RegistrySubscriptionManager(String topicStoragePath,
String indexStoragePath)
Adds topic storage path and index storage path to user registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubscription(Subscription subscription)
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()
Get all the subscriptions.
|
Subscription |
getSubscription(String id)
Gets the subscription
|
String |
getTopicStoragePath()
Gets the topic storage path
|
void |
renewSubscription(Subscription subscription)
Renewing a subscription
|
void |
unSubscribe(String subscriptionID)
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.EventBrokerConfigurationExceptionpublic void addSubscription(Subscription subscription) throws EventBrokerException
addSubscription in interface SubscriptionManagersubscription - the subscription to be addedEventBrokerExceptionpublic List<Subscription> getAllSubscriptions() throws EventBrokerException
getAllSubscriptions in interface SubscriptionManagerEventBrokerExceptionpublic Subscription getSubscription(String id) throws EventBrokerException
getSubscription in interface SubscriptionManagerid - the subscription idEventBrokerExceptionpublic void renewSubscription(Subscription subscription) throws EventBrokerException
renewSubscription in interface SubscriptionManagersubscription - the subscriptionEventBrokerExceptionpublic void unSubscribe(String subscriptionID) throws EventBrokerException
unSubscribe in interface SubscriptionManagersubscriptionID - the subscription IDEventBrokerExceptionpublic String getTopicStoragePath() throws EventBrokerException
getTopicStoragePath in interface SubscriptionManagerEventBrokerExceptionCopyright © 2017 WSO2. All rights reserved.