private static final NotificationFormatterFactory JSON_FORMATTER_FACTORY =
JSONNotificationFormatter.createFactory(JSONCodecFactorySupplier.RFC7951);
- AbstractNotificationListenerAdaptor(final String streamName, final NotificationOutputType outputType) {
- super(streamName, outputType, getFormatterFactory(outputType));
+ AbstractNotificationListenerAdaptor(final String streamName, final NotificationOutputType outputType,
+ final ListenersBroker listenersBroker) {
+ super(streamName, outputType, getFormatterFactory(outputType), listenersBroker);
}
private static NotificationFormatterFactory getFormatterFactory(final NotificationOutputType outputType) {
final Optional<String> maybeOutput;
try {
- maybeOutput = formatter().eventData(effectiveModel(), notification, eventInstant, getLeafNodesOnly(),
- isSkipNotificationData(), getChangedLeafNodesOnly());
+ maybeOutput = formatter().eventData(effectiveModel(), notification, eventInstant);
} catch (Exception e) {
LOG.error("Failed to process notification {}", notification, e);
return;