Interface Subscription


public interface Subscription
Represents a managed subscription to a given topic.

It can be used to trigger un-subscription actions.

  • Method Details

    • getTopic

      String getTopic()
      Returns the name of the subscribed topic.
      Returns:
      the name of the subscribed topic.
    • unsubscribe

      Un-subscribes from the topic asynchronously.
      Returns:
      a promise of an un-subscription acknowledgement.