* @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);
}
}
}