Interface NotificationProviderService

    • Method Detail

      • publish

        void publish​(Notification notification)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: NotificationPublishService
        Publishes a notification and notifies subscribed listeners. All listener notifications are done via a default executor.

        Note: This call will block when the default executor is saturated and the notification queue for this executor is full.

        Specified by:
        publish in interface NotificationPublishService<Notification>
        Parameters:
        notification - the notification to publish.
      • publish

        void publish​(Notification notification,
                     ExecutorService executor)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: NotificationPublishService
        Publishes a notification and notifies subscribed listeners. All listener notifications are done via the provided executor.

        Note: Use only if necessary. Consider using NotificationPublishService.publish(Object) for most use-cases.

        By using this method you could customize execution policy of listeners present inside process (e.g. using single-threaded executor or even same-thread executor delivery.

        This executor is used only for inside-process notification deliveries.

        Specified by:
        publish in interface NotificationPublishService<Notification>
        Parameters:
        notification - the notification to publish.
        executor - the executor that will be used to deliver notifications to subscribed listeners.