public interface DeliveryManager
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Clear subscription details
|
void |
initializeTenant()
Initialize tenant
|
void |
publish(Message message,
String topicName,
int deliveryMode)
publish an omElement to a topic
|
void |
renewSubscription(Subscription subscription)
Renew subscription details
|
void |
setNotificationManager(NotificationManager notificationManager)
Notification manager is used to send the notifications
|
void |
subscribe(Subscription subscription)
subscribe with the subscription details.
|
void |
unSubscribe(String id)
un-subscribe the subscription
|
void subscribe(Subscription subscription) throws EventBrokerException
subscription
- subscriptionEventBrokerException
void setNotificationManager(NotificationManager notificationManager)
notificationManager
- notification manager objectvoid publish(Message message, String topicName, int deliveryMode) throws EventBrokerException
message
- message objecttopicName
- topic namedeliveryMode
- delivery modeEventBrokerException
void unSubscribe(String id) throws EventBrokerException
id
- subscription idEventBrokerException
void cleanUp() throws EventBrokerException
EventBrokerException
void renewSubscription(Subscription subscription) throws EventBrokerException
subscription
- subscriptionEventBrokerException
void initializeTenant() throws EventBrokerException
EventBrokerException
Copyright © 2019 WSO2. All rights reserved.