@Override public int compare(Notification o1, Notification o2) { return o1.getSeqNumber() - o2.getSeqNumber(); } });
LOG.info("Received {}", notification); if (clientState.updateTopicSubscriptionInfo(notification.getTopicId(), notification.getSeqNumber())) { newNotifications.add(notification); } else { LOG.info("Notification with seq number {} was already received", notification.getSeqNumber());