Uses of Interface
dk.cloudcreate.essentials.components.foundation.postgresql.NotificationDuplicationFilter
Packages that use NotificationDuplicationFilter
-
Uses of NotificationDuplicationFilter in dk.cloudcreate.essentials.components.foundation.postgresql
Classes in dk.cloudcreate.essentials.components.foundation.postgresql that implement NotificationDuplicationFilterModifier and TypeClassDescriptionstatic classDefault filter to extract the "table_name" property from a JSON parameter.Methods in dk.cloudcreate.essentials.components.foundation.postgresql with parameters of type NotificationDuplicationFilterModifier and TypeMethodDescriptionbooleanMultiTableChangeListener.addDuplicationFilterAsFirst(NotificationDuplicationFilter filter) Adds a customNotificationDuplicationFilterto the filter chain as the very first (highest priority).
TheNotificationDuplicationFilter's are used to extract unique keys from theNotification.getParameter()JSON content.
The key extracted fromextractDuplicationKey(JsonNode)will be used insideMultiTableChangeListenerfor duplication checks across allNotification's returned in one poll.
If an emptyOptionalis returned then the given notification won't be deduplicated.
If two or moreNotification's in a given poll batch share the same duplication key, ANDMultiTableChangeListener.isFilterDuplicateNotifications()is true, then only one of them will be published to the listeners registered with theMultiTableChangeListener
Note: Only a single instance of a particularNotificationDuplicationFilter, determined by callingObject.equals(Object)on the filters.booleanMultiTableChangeListener.addDuplicationFilterAsLast(NotificationDuplicationFilter filter) Adds a customNotificationDuplicationFilterto the filter chain as the very last (lowest priority).
TheNotificationDuplicationFilter's are used to extract unique keys from theNotification.getParameter()JSON content.
The key extracted fromextractDuplicationKey(JsonNode)will be used insideMultiTableChangeListenerfor duplication checks across allNotification's returned in one poll.
If an emptyOptionalis returned then the given notification won't be deduplicated.
If two or moreNotification's in a given poll batch share the same duplication key, ANDMultiTableChangeListener.isFilterDuplicateNotifications()is true, then only one of them will be published to the listeners registered with theMultiTableChangeListener
Note: Only a single instance of a particularNotificationDuplicationFilter, determined by callingObject.equals(Object)on the filters.booleanNotificationFilterChain.addFilterAsFirst(NotificationDuplicationFilter filter) Adds a customNotificationDuplicationFilterto the filter chain as the very first (highest priority).
Note: Only a single instance of a particularNotificationDuplicationFilter, determined by callingObject.equals(Object)on the filters, can be addedbooleanNotificationFilterChain.addFilterAsLast(NotificationDuplicationFilter filter) Adds a customNotificationDuplicationFilterto the filter chain as the very last (lowest priority).
Note: Only a single instance of a particularNotificationDuplicationFilter, determined by callingObject.equals(Object)on the filters, can be addedvoidMultiTableChangeListener.removeDuplicationFilter(NotificationDuplicationFilter filter) Removes a customNotificationDuplicationFilterfrom the filter chain.voidNotificationFilterChain.removeFilter(NotificationDuplicationFilter filter) Removes a customNotificationDuplicationFilterfrom the filter chain.