package cn.ey.biz.module.system.mq.producer.i8n;

import cn.ey.biz.framework.mq.core.RedisMQTemplate;
import cn.ey.biz.module.system.mq.message.i8n.I18nRefreshMessage;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * I18n 多语言相关消息的 Producer
 */
@Component
public class I18nProducerRedis implements I18nProducer {

    @Resource
    private RedisMQTemplate redisMQTemplate;

    /**
     * 发送 {@link I18nRefreshMessage} 消息
     */
    public void sendI18nRefreshMessage() {
        I18nRefreshMessage message = new I18nRefreshMessage();
        redisMQTemplate.send(message);
    }

}
