if (resp.hasSubscriptionEvent()) {
if (null == subHandler) {
logger.error("Received subscription event from a non-subscription channel : {}",
response);
} else {
SubscriptionEventResponse eventResp = resp.getSubscriptionEvent();
logger.debug("Received subscription event {} for (topic:{}, subscriber:{}).",
va(eventResp.getEvent(), response.getTopic(),
response.getSubscriberId()));
subHandler.handleSubscriptionEvent(response.getTopic(),
response.getSubscriberId(),
eventResp.getEvent());
}
return;
}
}