package com.xinda.mq.rocketmq.listener;

import com.xinda.common.constant.XinDaConstant;
import com.xinda.common.core.mq.message.DeviceDownMessage;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @author gsb
 * @date 2022/10/11 16:49
 */
@Slf4j
@Component
@RocketMQMessageListener(consumerGroup = XinDaConstant.CHANNEL.PROP_READ_GROUP , topic = XinDaConstant.CHANNEL.PROP_READ)
@ConditionalOnProperty(prefix ="cluster", name = "type",havingValue = XinDaConstant.MQTT.ROCKET_MQ)
public class RocketPropReadListener implements RocketMQListener<DeviceDownMessage> {

    @Override
    public void onMessage(DeviceDownMessage deviceDownMessage) {

    }
}
