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