package com.xueyi.job.task;

import com.xueyi.message.api.transfer.feign.RemoteTransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author xueyi
 */
@Component("dmBroadDataTask")
public class DmBroadDataTask {
    @Autowired
    RemoteTransferService remoteTransferService;
    /**
     * 触发条件：* 0/1 * * * *
     * 每分钟执行一次
     */
    public void syncData() {
        remoteTransferService.broadcast("broadData");
    }
}
