protected void afterPoll() {
if (consumer instanceof PollingConsumerPollingStrategy) {
PollingConsumerPollingStrategy strategy = (PollingConsumerPollingStrategy) consumer;
try {
strategy.afterPoll();
} catch (Exception e) {
LOG.debug("Error occurred after polling " + consumer + ". This exception will be ignored.", e);
}
}
}