Interface NotificationService

    • 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.