vongosling 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_r292816617
##########
File path:
rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/autoconfigure/RocketMQProperties.java
##########
@@ -36,6 +39,16 @@
private Producer producer;
+ /**
+ * Configure enable listener or not.
+ * In some particular cases, if you don't want the the listener is enabled
when container startup,
+ * the configuration pattern is like this :
+ * rocketmq.consumer.listeners.<group-name>.<topic-name>.enabled=<boolean
value, true or false>
+ * <p>
+ * the listener is enabled by default.
+ */
+ private Consumer consumer = new Consumer();
Review comment:
Can we not initialize consumer here, just staying with the producer
----------------------------------------------------------------
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