org.yes.tools.mq.annotaion.MQConsumer Maven / Gradle / Ivy
package org.yes.tools.mq.annotaion;
import org.apache.rocketmq.common.protocol.heartbeat.MessageModel;
import org.springframework.stereotype.Component;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface MQConsumer {
String consumerGroup() default "group";
String topic() default "";
String tag() default "*";
MessageModel model() default MessageModel.CLUSTERING;
}