Interface Subscription


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

    It can be used to trigger un-subscription actions.

    • Method Detail

      • getTopic

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

        Promise<SubscriptionAck,​IOException> unsubscribe()
        Un-subscribes from the topic asynchronously.
        Returns:
        a promise of an un-subscription acknowledgement.