SubscriptionClient.addRule 方法

定义

重载

addRule(RuleDescription ruleDescription)

Adds a rule to the current subscription to filter the messages reaching from topic to the subscription.

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.

addRule(RuleDescription ruleDescription)

Adds a rule to the current subscription to filter the messages reaching from topic to the subscription.

public void addRule(RuleDescription ruleDescription)

参数

ruleDescription
RuleDescription

The rule description that provides the rule to add.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if add rule failed

替代

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.

public void addRule(String ruleName, Filter filter)

参数

ruleName
String

The rule name

filter
Filter

The Filter to add.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if add rule failed

替代

适用于