Skip to content

Commit

Permalink
for issue WeBankFinTech#64:add func to sub with tag
Browse files Browse the repository at this point in the history
  • Loading branch information
keranbingaa committed Sep 12, 2022
1 parent 847174f commit fbdc299
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ public void subscribe(String topic) throws MQClientException {
LOG.info("add subscription [{}] to consumer", topic);
}

public void subscribe(String topic, String tag) throws MQClientException {
this.defaultMQPushConsumer.subscribe(topic, tag);
LOG.info("add subscription [{}] to consumer,tag = {}", topic, tag);
}

public void unsubscribe(String topic) {
unsubscribe(topic, true);
}
Expand Down

0 comments on commit fbdc299

Please sign in to comment.