Interface NotificationService

  • All Known Implementing Classes:
    NotificationServiceImpl

    public interface NotificationService
    Represents a source of notifications.
    • Method Detail

      • subscribe

        Promise<Subscription,​SubscriptionException> subscribe​(String topic,
                                                                    NotificationListener listener)
        Subscribes (asynchronously) to a given topic, providing a listener that will be invoked at notification reception time.
        Parameters:
        topic - topic name to subscribe to
        listener - notification listener
        Returns:
        a promise of a subscription that will be completed after AM sends back the acknowledgement.