ISubscriptionClient Interface
public interface ISubscriptionClient extends IMessageEntityClient
SubscriptionClient can be used for all basic interactions with a Service Bus Subscription.
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addRule(RuleDescription ruleDescription)
Adds a rule to the current subscription to filter the messages reaching from topic to the subscription. |
void |
addRule(String ruleName, Filter filter)
Adds a rule with specified name and Filter to the current subscription to filter the messages reaching from topic to the subscription. |
CompletableFuture<Void> |
addRuleAsync(RuleDescription ruleDescription)
Asynchronously adds a rule to the current subscription to filter the messages reaching from topic to the subscription. |
CompletableFuture<Void> |
addRuleAsync(String ruleName, Filter filter)
Asynchronously adds a rule with specified name and Filter to the current subscription to filter the messages reaching from topic to the subscription. |
Receive |
getReceiveMode()
Gets the ReceiveMode of the current receiver |
Collection<Rule |
getRules()
Get all rules associated with the subscription. |
CompletableFuture<Collection<Rule |
getRulesAsync()
Get all rules associated with the subscription. |
String |
getSubscriptionName()
Gets the subscription name. |
String |
getTopicName()
Gets the name of the topic, for this subscription. |
void |
removeRule(String ruleName)
Removes the rule on the subscription identified by ruleName |
CompletableFuture<Void> |
removeRuleAsync(String ruleName)
Asynchronously removes the rule on the subscription identified by ruleName |
Inherited Members
Method Details
addRule
public void addRule(RuleDescription ruleDescription)
Adds a rule to the current subscription to filter the messages reaching from topic to the subscription.
Parameters:
Throws:
addRule
public void addRule(String ruleName, Filter filter)
Adds a rule with specified name and Filter to the current subscription to filter the messages reaching from topic to the subscription.
Parameters:
Throws:
addRuleAsync
public CompletableFuture
Asynchronously adds a rule to the current subscription to filter the messages reaching from topic to the subscription.
Parameters:
Returns:
addRuleAsync
public CompletableFuture
Asynchronously adds a rule with specified name and Filter to the current subscription to filter the messages reaching from topic to the subscription.
Parameters:
Returns:
getReceiveMode
public ReceiveMode getReceiveMode()
Gets the ReceiveMode of the current receiver
Returns:
getRules
public Collection
Get all rules associated with the subscription.
Returns:
Throws:
getRulesAsync
public CompletableFuture
Get all rules associated with the subscription.
Returns:
getSubscriptionName
public String getSubscriptionName()
Gets the subscription name.
Returns:
getTopicName
public String getTopicName()
Gets the name of the topic, for this subscription.
Returns:
removeRule
public void removeRule(String ruleName)
Removes the rule on the subscription identified by ruleName
Parameters:
Throws:
removeRuleAsync
public CompletableFuture
Asynchronously removes the rule on the subscription identified by ruleName
Parameters:
Returns:
Applies to
Azure SDK for Java