Interface Subscription
-
public interface Subscription
Represents a managed subscription to a given topic.It can be used to trigger un-subscription actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getTopic()
Returns the name of the subscribed topic.Promise<SubscriptionAck,IOException>
unsubscribe()
Un-subscribes from the topic asynchronously.
-
-
-
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.
-
-