public interface SubscriptionManager
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.
|
void addSubscription(Subscription subscription) throws EventBrokerException
subscription
- the subscription to be addedEventBrokerException
List<Subscription> getAllSubscriptions() throws EventBrokerException
EventBrokerException
Subscription getSubscription(String id) throws EventBrokerException
id
- the subscription idEventBrokerException
void unSubscribe(String subscriptionID) throws EventBrokerException
subscriptionID
- the subscription IDEventBrokerException
void renewSubscription(Subscription subscription) throws EventBrokerException
subscription
- the subscriptionEventBrokerException
String getTopicStoragePath() throws EventBrokerException
EventBrokerException
Copyright © 2019 WSO2. All rights reserved.