[
https://issues.apache.org/jira/browse/ROCKETMQ-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226369#comment-16226369
]
ASF GitHub Bot commented on ROCKETMQ-120:
-----------------------------------------
zhouxinyu commented on a change in pull request #32: [ROCKETMQ-120] Provider a
adapter for spring and spring-boot
URL: https://github.com/apache/rocketmq-externals/pull/32#discussion_r147909214
##########
File path:
spring-boot-starter-rocketmq/src/main/java/org/apache/rocketmq/spring/starter/annotation/RocketMQMessageListener.java
##########
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.rocketmq.spring.starter.annotation;
+
+import org.apache.rocketmq.spring.starter.enums.ConsumeMode;
+import org.apache.rocketmq.spring.starter.enums.SelectorType;
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import org.apache.rocketmq.common.protocol.heartbeat.MessageModel;
+
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface RocketMQMessageListener {
Review comment:
I am confused about `RocketMQMessageListener` and `RocketMQListener`, the
first interface is just placed some consumer-related configurations, the second
interface is a real message listener. IMO, we should rename these two
interfaces.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Provide a adapter for spring and spring-boot
> --------------------------------------------
>
> Key: ROCKETMQ-120
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-120
> Project: Apache RocketMQ
> Issue Type: Wish
> Reporter: yukon
> Assignee: dongeforever
> Priority: Minor
> Fix For: 4.2.0
>
>
> Provider a rocketmq-spring adapter for the convenience of the spring user.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)