private void publishNotification(NotificationResponse notification) { Map<String,Subscriber<? super String>> consumers = listeners.get(notification.getChannel()); if(consumers != null) { consumers.values().forEach(c -> c.onNext(notification.getPayload())); } }
private void publishNotification(NotificationResponse notification) { Map<String,Subscriber<? super String>> consumers = listeners.get(notification.getChannel()); if(consumers != null) { consumers.values().forEach(c -> c.onNext(notification.getPayload())); } }