Interface Subscription
public interface Subscription
Represents a managed subscription to a given topic.
 
It can be used to trigger un-subscription actions.
- 
Method Summary
Modifier and TypeMethodDescriptiongetTopic()Returns the name of the subscribed topic.Un-subscribes from the topic asynchronously. 
- 
Method Details
- 
getTopic
String getTopic()Returns the name of the subscribed topic.- Returns:
 - the name of the subscribed topic.
 
 - 
unsubscribe
Promise<Void,SubscriptionException> unsubscribe()Un-subscribes from the topic asynchronously.- Returns:
 - a promise of an un-subscription acknowledgement.
 
 
 -