Interface NotificationHandlerRegistration

  • All Superinterfaces:
    NotificationHandlerRegistry

    public interface NotificationHandlerRegistration
    extends NotificationHandlerRegistry
    The NotificationHandlerRegistration is used to register and unregister notification handlers. Notification handlers are registered against PathAddress. The source PathAddress can be a pattern if at least one of its element value is a wildcard (PathElement.getValue() is *). For example:
    • /subsystem=messaging/hornetq-server=default/jms-queue=* is an address pattern.
    • /subsystem=messaging/hornetq-server=*/jms-queue=* is an address pattern.
    • /subsystem=messaging/hornetq-server=default/jms-queue=myQueue is not an address pattern.
    Author:
    Jeff Mesnil (c) 2014 Red Hat inc.
    • Method Detail

      • findMatchingNotificationHandlers

        Collection<NotificationHandler> findMatchingNotificationHandlers​(Notification notification)
        Return all the NotificationHandler that where registered to listen to the notification's source address (either directly or though pattern addresses) after filtering them out using the NotificationFilter given at registration time.
        Parameters:
        notification - the source address of the notification must be a concrete address correspdonding to a resource (and not a wildcard address)
        Returns:
        all the filtered NotificationHandler that registered against the notification source.