public interface EventBroker
EventDispatcher with the given name. In a server restart
again caller has to register the EventDispatcher.| Modifier and Type | Method and Description |
|---|---|
List<Subscription> |
getAllSubscriptions(String filter)
Get all subscriptions
|
Subscription |
getSubscription(String id)
Get subscription from subscription ID
|
TopicManagerService |
getTopicManagerService()
Gets the topic manager
|
void |
initializeTenant()
This method is called when a tenant initialize.
|
void |
publish(Message message,
String topicName)
Publish an event to the given topic asynchronously.
|
void |
publish(Message message,
String topicName,
int deliveryMode)
Publish an event to the given topic asynchronously.
|
void |
publishRobust(Message message,
String topicName)
Publish an event to the given topic synchronously.
|
void |
publishRobust(Message message,
String topicName,
int deliveryMode)
Publish an event to the given topic synchronously.
|
void |
registerEventDispatcher(String eventDispatcherName,
EventDispatcher eventDispatcher)
Register an event dispatcher in the case of using subscriptions with eventBrokerName
|
void |
renewSubscription(Subscription subscription)
Renews a subscription.
|
String |
subscribe(Subscription subscription)
Subscribe using the given subscription details.
|
void |
unsubscribe(String id)
Unsubscribes a subscription
|
String subscribe(Subscription subscription) throws EventBrokerException
subscription - the subscriptionEventBrokerExceptionvoid unsubscribe(String id) throws EventBrokerException
id - subscription IDEventBrokerExceptionSubscription getSubscription(String id) throws EventBrokerException
id - subscription IDEventBrokerExceptionvoid renewSubscription(Subscription subscription) throws EventBrokerException
subscription - the subscription to renewEventBrokerExceptionList<Subscription> getAllSubscriptions(String filter) throws EventBrokerException
filter - filter value. use * for allEventBrokerExceptionvoid publish(Message message, String topicName) throws EventBrokerException
message - - message to publish. this contains the OMElement of the message and any
properties.topicName - topic nameEventBrokerExceptionvoid publish(Message message, String topicName, int deliveryMode) throws EventBrokerException
message - - message to publish. this contains the OMElement of the message and any
properties.topicName - topic namedeliveryMode - - persist or notEventBrokerExceptionvoid publishRobust(Message message, String topicName) throws EventBrokerException
message - message to publish. this contains the OMElement of the message and any
properties.topicName - topic nameEventBrokerExceptionvoid publishRobust(Message message, String topicName, int deliveryMode) throws EventBrokerException
message - - message to publish. this contains the OMElement of the message and any
properties.topicName - topic namedeliveryMode - - persist or notEventBrokerExceptionvoid registerEventDispatcher(String eventDispatcherName, EventDispatcher eventDispatcher)
eventDispatcherName - event dispatcher nameeventDispatcher - event dispatcherTopicManagerService getTopicManagerService() throws EventBrokerException
EventBrokerExceptionvoid initializeTenant()
throws EventBrokerException,
org.wso2.carbon.user.api.UserStoreException
EventBrokerExceptionorg.wso2.carbon.user.api.UserStoreExceptionCopyright © 2017 WSO2. All rights reserved.