Examples of EventBrokerException


Examples of org.wso2.carbon.eventing.broker.exceptions.EventBrokerException

     * @return subscription ID
     * @throws EventBrokerException if the operation fails
     */
    public boolean renew(Subscription subscription) throws EventException {
        if (subManager == null) {
            throw new EventBrokerException("Subscription Manager not Registered");
        }
        try {
            return subManager.renew(subscription);
        } catch (EventException e) {
            if (e instanceof EventBrokerException) {
                throw (EventBrokerException)e;
            } else {
                log.error("Renew operation failed.", e);
                throw new EventBrokerException("Renew operation failed.", e);
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.eventing.broker.exceptions.EventBrokerException

    public boolean registerSubscriptionManager(SubscriptionManager subManager)
            throws EventBrokerException {
        if (subManager == null) {
            return false;
        } else if (this.subManager != null) {
            throw new EventBrokerException("Subscription Manager already Registered");
        }
        log.debug("Successfully registered Subscription Manager");
        this.subManager = subManager;
        return true;
    }
View Full Code Here

Examples of org.wso2.carbon.eventing.broker.exceptions.EventBrokerException

    public boolean registerNotificationManager(NotificationManager notifyManager)
            throws EventBrokerException {
        if (notifyManager == null) {
            return false;
        } else if (this.notifyManager != null) {
            throw new EventBrokerException("Notification Manager already Registered");
        }
        log.debug("Successfully registered Notification Manager");
        this.notifyManager = notifyManager;
        return true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.