Interface NotificationFilter

All Known Implementing Classes:
ReferenceNotificationFilter

@PublicSpi public interface NotificationFilter
A NotificationFilter allows a plugin to add and remove NotificationRecipient s to a notification event.

addRecipient(NotificationFilterContext, Iterable) is always called first for all plugins and then removeRecipient(NotificationRecipient, NotificationFilterContext) is called after that to remove any recipients that are not needed.

You are very likely to be called multiple times during an issue event (depending on circumstances) and hence you need to manager your side effects. The NotificationFilterContext object passed to you has a state map where you can place stateful information and perhaps prevent multiple effects happening (if need be).

Since:
v6.0