LuanLouis commented on a change in pull request #87: [ISSUE #86] add feature:
consumer listener enabled configuration
URL: https://github.com/apache/rocketmq-spring/pull/87#discussion_r292830621
##########
File path:
rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/autoconfigure/RocketMQProperties.java
##########
@@ -207,4 +220,32 @@ public void setCustomizedTraceTopic(String
customizedTraceTopic) {
this.customizedTraceTopic = customizedTraceTopic;
}
}
+
+ public Consumer getConsumer() {
+ return consumer;
+ }
+
+ public void setConsumer(Consumer consumer) {
+ this.consumer = consumer;
+ }
+
+ public static final class Consumer {
+ /**
+ * listener configuration container
+ * the pattern is like this:
+ * group1.topic1 = false
+ * group2.topic2 = true
+ * group3.topic3 = false
+ */
+ private Map<String, Map<String, Boolean>> listeners = new HashMap<>();
Review comment:
This PR is aimed to adding
`rocketmq.consumer.listeners.<consumer-group-name>.<topic-name>.enabled =
false` configuration for `@RocketMQMessageListener` to control it's
initilization when container boostraped. So as least two dimensions
(consumer-group-name and topic) should be illustrated, as a result, I use a two
layered map to implement it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services