Interface ISubscriptionClient

    • Method Detail

      • getReceiveMode

        ReceiveMode getReceiveMode()
        Gets the ReceiveMode of the current receiver
        Returns:
        The receive mode.
      • addRuleAsync

        CompletableFuture<Void> addRuleAsync​(RuleDescription ruleDescription)
        Asynchronously adds a rule to the current subscription to filter the messages reaching from topic to the subscription.
        Parameters:
        ruleDescription - The rule description that provides the rule to add.
        Returns:
        a CompletableFuture representing the pending rule add operation.
      • addRuleAsync

        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.
        Parameters:
        ruleName - The rule name
        filter - The Filter to add.
        Returns:
        a CompletableFuture representing the pending rule add operation.
      • removeRuleAsync

        CompletableFuture<Void> removeRuleAsync​(String ruleName)
        Asynchronously removes the rule on the subscription identified by ruleName
        Parameters:
        ruleName - he name of rule.
        Returns:
        a CompletableFuture representing the pending rule remove operation.
      • getTopicName

        String getTopicName()
        Gets the name of the topic, for this subscription.
        Returns:
        the name of the topic
      • getSubscriptionName

        String getSubscriptionName()
        Gets the subscription name.
        Returns:
        The subscription name.